projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e682535
)
egencache --update-changelogs: escape CP regexp
author
Michał Górny
<mgorny@gentoo.org>
Sun, 3 Oct 2010 17:02:55 +0000
(19:02 +0200)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 3 Oct 2010 19:18:05 +0000
(12:18 -0700)
bin/egencache
patch
|
blob
|
history
diff --git
a/bin/egencache
b/bin/egencache
index cc83f9fd1be4e853052d37fa7f48fa5afd694e74..1a6a0aa874d41fed951f991d9c4b0b9cd577fb74 100755
(executable)
--- 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