]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
fix debian_build: match against int instead of relying on boolean values
authorMathias Klette <mathias.klette@profitbricks.com>
Thu, 2 May 2013 09:41:28 +0000 (11:41 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Thu, 2 May 2013 10:01:26 +0000 (12:01 +0200)
debian_build.py

index d2438c3caa3b4bb442ecf44ae2aa243e3d40e756..982d16640dd35661f0598574c69e41f54efacfae 100755 (executable)
@@ -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: