diff options
author | Michał Górny <mgorny@gentoo.org> | 2010-10-03 10:10:16 +0200 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-10-06 15:50:19 -0700 |
commit | a43c6c8af6a3533ac98134c012ab92f16fec6b02 (patch) | |
tree | 3ca71df26a081d28847435ba08e8f0c457f1bec8 | |
parent | 0fa7de4f5c601c4682266b937df260f2199e05ec (diff) | |
download | portage-a43c6c8af6a3533ac98134c012ab92f16fec6b02.tar.gz portage-a43c6c8af6a3533ac98134c012ab92f16fec6b02.tar.bz2 portage-a43c6c8af6a3533ac98134c012ab92f16fec6b02.zip |
egencache --update-changelogs: strip leading CP from the log messages.
-rwxr-xr-x | bin/egencache | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/egencache b/bin/egencache index 48350e713..7c3d9a245 100755 --- a/bin/egencache +++ b/bin/egencache @@ -26,6 +26,7 @@ import optparse import subprocess import time import textwrap +import re try: import portage @@ -562,9 +563,11 @@ class GenChangeLogs(object): if wroteheader: output.write('\n') - # XXX: strip '<CP>: ' and '[<CP>] ' from the commit message # 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.insert(0, '%s; %s %s:' % (date, author, ', '.join(changed))) output.write('\n'.join([self._wrapper.fill(x) for x in body])) |