From: Mathias Klette Date: Tue, 15 May 2012 17:17:39 +0000 (+0200) Subject: right, no list, just a string to pass to subprocess X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=4f32b4d09eb37ffa881af9ff9f1c13dab80925f8;p=profitbricks%2Fjenkins-build-scripts.git right, no list, just a string to pass to subprocess --- diff --git a/debian_build.py b/debian_build.py index b36ccb0..8bd1f09 100755 --- a/debian_build.py +++ b/debian_build.py @@ -427,7 +427,8 @@ if __name__ == '__main__': raise Exception('unhandled branch, failing.') # cleanup existing *orig.tar.gz - cmd = [BIN_SUDO, BIN_RM, '-f', fnmatch.filter(os.listdir('../build-area/'),'*.orig.tar.gz')] + files = " ".join(fnmatch.filter(os.listdir('../build-area/'),'*.orig.tar.gz')) + cmd = [BIN_SUDO, BIN_RM, '-f', files] cmdobj = subprocess.Popen( cmd, shell=False,