From 11d963e7bc25869a71507824355577023aa4abb9 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Fri, 25 Jul 2014 22:14:55 +0200 Subject: [PATCH] debian_build.py: Fix print of changelog entries. --- debian_build.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/debian_build.py b/debian_build.py index 7394489..d21a1ec 100755 --- a/debian_build.py +++ b/debian_build.py @@ -615,9 +615,15 @@ if __name__ == '__main__': cl = changelog.Changelog() cl.parse_changelog(open('debian/changelog')) logger.info('New changelog:') - for block in cl._blocks[0:2]: - for line in block.__str__().split('\n'): - logger.info(' ' + line) + count = 2 + changelog = "" + for block in cl: + changelog += str(block) + count -= 1 + if count == 0: + break + for line in changelog.rstrip().split('\n'): + logger.info(' ' + line) # # ACT IV: preparations are done, let's build the source -- 2.39.5