stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd='./',
- universal_newlines=True
+ universal_newlines=True
)
ret = git_log.wait()
logger.debug('Trying to call: %s' %(' '.join(cmd)))
- new_log = git_log.stdout
+ new_log = git_log.stdout.read()
dch = subprocess.Popen(
cmd,
)
logger.info('debian/changelog written')
- if new_log.read() == '':
+ if new_log == '':
logger.info('git log since yesterday is empty, aborting build.')
sys.exit(0)
else:
- logger.info('git log since yesterday: %s ' % new_log.read())
+ logger.info('git log since yesterday: %s ' % new_log)
# we need to commit here else git-buildpackage will use the existing debian/changelog...