logger.debug('Trying to call: %s' %(' '.join(cmd)))
+ new_log = git_log.stdout
+
dch = subprocess.Popen(
cmd,
shell=False,
close_fds=True,
- stdin=git_log.stdout,
+ stdin=new_log,
stdout=sys.stdout,
stderr=sys.stderr,
cwd=os.getcwd()
)
logger.info('debian/changelog written')
- if git_log.stdout == '':
+ 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)
+
# we need to commit here else git-buildpackage will use the existing debian/changelog...
# TODO: Later we should investigate why the "--ignore-new" trick