logger.info('Reset repository to HEAD~1 to revert develop changelog entry.')
logger.debug(gitrepo.git.reset('--soft', 'HEAD~1'))
- # .. now handle the result
- if ret:
- logger.error('git-buildpackage failed with exitcode {code}'.format(code=ret))
- figlet('Build failed')
- exit_error()
- else:
- figlet('Build OK')
-
+ # .. show instructions of how to get interactive build
logger.info('''
###
### In case you need to analyze the results within chroot, do the following:
]),
command=' '.join(gbp.command),
))
+
+ # .. and finally handle the result
+ if ret:
+ logger.error('git-buildpackage failed with exitcode {code}'.format(code=ret))
+ figlet('Build failed')
+ exit_error()
+ else:
+ figlet('Build OK')
+
#
# ACT V: post-build actions
#