From: Benjamin Drung Date: Mon, 23 Dec 2013 14:40:40 +0000 (+0100) Subject: Fix crash when cleaning the repository fails. X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=a2daebaaa83cefae69ffa30f32a37cc8e6497acf;p=profitbricks%2Fjenkins-build-scripts.git Fix crash when cleaning the repository fails. subprocess.check_call will raise an exception instead of returning non-zero. --- diff --git a/debian_build.py b/debian_build.py index 53a33dd..772f0d9 100755 --- a/debian_build.py +++ b/debian_build.py @@ -345,7 +345,7 @@ if __name__ == '__main__': logger.info('Delete previous upstream tarball(s)') cmd = [BIN_SUDO, BIN_RM] + files command = ' '.join(cmd) - if subprocess.check_call(cmd) == 0: + if subprocess.call(cmd) == 0: logger.debug('%s succeeded.' % command) else: logger.warn('%s failed.' % command)