# 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