else:
logger.info('git log was successfull')
+ new_log = git_log.stdout.read()
+ if new_log == '':
+ logger.info('git log since yesterday is empty, aborting build.')
+ sys.exit(0)
+
cmd = [
'/usr/bin/dch',
'--create',
'--distribution',
'%s' %(options.distribution),
'--',
- '%s' %(''.join(git_log.stdout.read()))
+ '%s' %(''.join(new_log))
]
logger.debug('Trying to call: %s' %(' '.join(cmd)))
- new_log = git_log.stdout.read()
-
dch = subprocess.Popen(
cmd,
shell=False,
)
logger.info('debian/changelog written')
- 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
# did not work!