From: Robin Wittler Date: Wed, 7 Sep 2011 09:52:52 +0000 (+0200) Subject: fix wrong exit handling X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=f1e605f30901c8873ad02c0a22c2345d34f96a7c;p=profitbricks%2Fjenkins-build-scripts.git fix wrong exit handling --- diff --git a/build.py b/build.py index a664750..4a69afb 100755 --- a/build.py +++ b/build.py @@ -424,16 +424,16 @@ if __name__ == '__main__': exit_error() else: logger.debug('git-buildpackage executed successfully') - if not ret: +# if not ret: build_log=os.path.join('../build-area/result/', '%s_%s_amd64.build' % (pkg_name, version)) try: fh = open(build_log, 'r') - logger.info('%s' % (fh.read())) + logger.debug('Output of the deb build: %s' % (fh.read())) fh.close() except: pass - exit_error() - else: +# exit_error() +# else: try: create_dput_cfg() changes_file = os.path.join(GIT_TARGET_WORKSPACE, 'build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version))