]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
right, no list, just a string to pass to subprocess
authorMathias Klette <mathias.klette@profitbricks.com>
Tue, 15 May 2012 17:17:39 +0000 (19:17 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Tue, 15 May 2012 17:17:39 +0000 (19:17 +0200)
debian_build.py

index b36ccb0a0efef6d219fd2e9ee41e662be9cad43c..8bd1f098c1625ddaaf1775898ff221baa4af6573 100755 (executable)
@@ -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,