From: Benjamin Drung Date: Fri, 25 Jul 2014 20:14:55 +0000 (+0200) Subject: debian_build.py: Fix print of changelog entries. X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=11d963e7bc25869a71507824355577023aa4abb9;p=profitbricks%2Fjenkins-build-scripts.git debian_build.py: Fix print of changelog entries. --- 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