summaryrefslogtreecommitdiffstats
path: root/bin/egencache
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-03 12:18:05 -0700
commit91911ef2e9411be275a88bff0b414db0273426fd (patch)
tree0517bd16f7f20a916238110f2a9477cd7c9fda47 /bin/egencache
parente682535a9f42213b65da11634cf10121957c852c (diff)
downloadportage-91911ef2e9411be275a88bff0b414db0273426fd.tar.gz
portage-91911ef2e9411be275a88bff0b414db0273426fd.tar.bz2
portage-91911ef2e9411be275a88bff0b414db0273426fd.zip
egencache --update-changelogs: escape CP regexp
Diffstat (limited to 'bin/egencache')
-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