From: Michał Górny Date: Sun, 3 Oct 2010 17:02:55 +0000 (+0200) Subject: egencache --update-changelogs: escape CP regexp X-Git-Tag: v2.2_rc90~40 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=91911ef2e9411be275a88bff0b414db0273426fd;p=portage.git egencache --update-changelogs: escape CP regexp --- 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 ': ', '[] ', 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