summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2010-10-03 19:02:55 +0200
committerZac Medico <zmedico@gentoo.org>2010-10-06 15:52:39 -0700
commit842b883e7dd66296cd4073b51fcce7bd7754415d (patch)
treed26b9570cfa48be334c57f79fe54131b2095bc72 /bin
parent9192f2238d26ce0d6099c5185cfae73ebb214c3e (diff)
downloadportage-842b883e7dd66296cd4073b51fcce7bd7754415d.tar.gz
portage-842b883e7dd66296cd4073b51fcce7bd7754415d.tar.bz2
portage-842b883e7dd66296cd4073b51fcce7bd7754415d.zip
egencache --update-changelogs: escape CP regexp
Diffstat (limited to 'bin')
-rwxr-xr-xbin/egencache2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/egencache b/bin/egencache
index cc83f9fd1..1a6a0aa87 100755
--- a/bin/egencache
+++ b/bin/egencache
@@ -566,7 +566,7 @@ class GenChangeLogs(object):
# XXX: strip the repoman suffix note from the commit message
# strip '<cp>: ', '[<cp>] ', and similar
- body[0] = re.sub(r'^\W*' + cp + '\W+', '', body[0])
+ body[0] = re.sub(r'^\W*' + re.escape(cp) + r'\W+', '', body[0])
# don't break filenames on hyphens
self._wrapper.break_on_hyphens = False