From: Mathias Klette Date: Thu, 2 May 2013 09:41:28 +0000 (+0200) Subject: fix debian_build: match against int instead of relying on boolean values X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=2c88d24baa6574b320135eaf2c7c148d246cc80a;p=profitbricks%2Fjenkins-build-scripts.git fix debian_build: match against int instead of relying on boolean values --- diff --git a/debian_build.py b/debian_build.py index d2438c3..982d166 100755 --- a/debian_build.py +++ b/debian_build.py @@ -127,7 +127,7 @@ def dput_package_upload(changes_path): result = cmd_obj.wait() logger.debug('Exit status: %d' %( result )) - if not result: + if result != 0: raise Exception('FIXME: explain the error') except Exception, error: