From: Mathias Klette Date: Tue, 7 May 2013 15:56:31 +0000 (+0200) Subject: and include AGAIN .. why does it disappear? X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=0dff1abad6421dcd8cc21c033dc8a51aa0646249;p=profitbricks%2Fjenkins-build-scripts.git and include AGAIN .. why does it disappear? --- diff --git a/debian_build.py b/debian_build.py index fa55119..47f6ebc 100755 --- a/debian_build.py +++ b/debian_build.py @@ -331,12 +331,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