From 83525c3837ff34614370bf3a18dbb53083404eb2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 5 Oct 2010 20:43:39 +0200 Subject: [PATCH] egencache --update-changelogs: reverse the sort order for headers. --- bin/egencache | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/egencache b/bin/egencache index 783cfc428..e0834a4ad 100755 --- a/bin/egencache +++ b/bin/egencache @@ -623,7 +623,8 @@ class GenChangeLogs(object): changed = [str(x) for x in sorted(changed)] wroteheader = False - for c in changed: + # Reverse the sort order for headers. + for c in reversed(changed): if c.startswith('+') and c.endswith('.ebuild'): output.write('*%s (%s)\n' % (c[1:-7], date)) wroteheader = True @@ -654,7 +655,7 @@ class GenChangeLogs(object): output.write('\n%s\n\n' % '\n'.join([self._wrapper.fill(x) for x in body])) output.close() - + def run(self): repo_path = self._portdb.porttrees[0] os.chdir(repo_path) -- 2.26.2