From 5bcbe4f0537ab15abeaeafcb8836148438ed3ef1 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Fri, 3 May 2013 14:58:50 +0200 Subject: [PATCH] include fix again for printing changelog --- debian_build.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/debian_build.py b/debian_build.py index d2308bc..9a6d093 100755 --- a/debian_build.py +++ b/debian_build.py @@ -330,12 +330,11 @@ if __name__ == '__main__': # let me see the first two changelog entries: - line_counter = 0 - for line in fileinput.input('debian/changelog'): - if line.startswith(' --'): - line_counter += 1 - if line_counter <= 2: - print('debian/changelog: %s' %(line.rstrip('\n'))) + # TODO: use changelog python libs instead of DCH calls, see above + cl = changelog.Changelog() + cl.parse_changelog(open('debian/changelog')) + logger.info('New changelog:\n\n%s' %( + ''.join([block.__str__() for block in cl._blocks[0:2]]))) # ACT IV: preparations are set, let's build -- 2.39.5