From 31bec2832a5f42b50c2998ebbe282d3456934c05 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 3 Oct 2010 10:10:16 +0200 Subject: [PATCH] egencache --update-changelogs: strip leading CP from the log messages. --- bin/egencache | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ': ' and '[] ' from the commit message # XXX: strip the repoman suffix note from the commit message + # strip ': ', '[] ', 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])) -- 2.26.2