diff options
author | Michał Górny <mgorny@gentoo.org> | 2010-10-03 19:02:55 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-06 15:52:39 -0700 |
commit | 842b883e7dd66296cd4073b51fcce7bd7754415d (patch) | |
tree | d26b9570cfa48be334c57f79fe54131b2095bc72 | |
parent | 9192f2238d26ce0d6099c5185cfae73ebb214c3e (diff) | |
download | portage-842b883e7dd66296cd4073b51fcce7bd7754415d.tar.gz portage-842b883e7dd66296cd4073b51fcce7bd7754415d.tar.bz2 portage-842b883e7dd66296cd4073b51fcce7bd7754415d.zip |
egencache --update-changelogs: escape CP regexp
-rwxr-xr-x | bin/egencache | 2 |
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 |