From 3e807320d8e62d6bd40cebee1237d49dc96a0455 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Mon, 17 Jun 2013 12:53:50 +0200 Subject: [PATCH] debian_build: ensure instructions are shown no matter if build was successful --- debian_build.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/debian_build.py b/debian_build.py index e99f94b..42a4c36 100755 --- a/debian_build.py +++ b/debian_build.py @@ -465,14 +465,7 @@ if __name__ == '__main__': 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: @@ -496,6 +489,15 @@ export {gbp_env} FORCE_SHELL=TRUE ]), 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 # -- 2.39.5