summaryrefslogtreecommitdiff
path: root/UpdateManager/UpdateManager.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-04-19 14:32:03 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-04-19 14:32:03 +0200
commit43b6ac8b952098943868404e8e28868bdf6265a5 (patch)
tree2db129d01a9e25b90dbd502d43367127ecb9ca58 /UpdateManager/UpdateManager.py
parent4129cac86f10b8fd1948be4ab1f5049e1bd322f7 (diff)
downloadpython-apt-43b6ac8b952098943868404e8e28868bdf6265a5.tar.gz
* UpdateManager/UpdateManager.py: make sure to escape the sourcepkg name when building a regular expression
Diffstat (limited to 'UpdateManager/UpdateManager.py')
-rw-r--r--UpdateManager/UpdateManager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/UpdateManager/UpdateManager.py b/UpdateManager/UpdateManager.py
index ff77eddf..6c06ca3c 100644
--- a/UpdateManager/UpdateManager.py
+++ b/UpdateManager/UpdateManager.py
@@ -325,7 +325,7 @@ class UpdateManager(SimpleGladeApp):
end_iter = changes_buffer.get_end_iter()
- version_match = re.match("^%s \((.*)\)(.*)$" % (srcpkg), line)
+ version_match = re.match(r'^%s \((.*)\)(.*)$' % re.escape(srcpkg), line)
#bullet_match = re.match("^.*[\*-]", line)
author_match = re.match("^.*--.*<.*@.*>.*$", line)
if version_match: