From 4f32b4d09eb37ffa881af9ff9f1c13dab80925f8 Mon Sep 17 00:00:00 2001 From: Mathias Klette Date: Tue, 15 May 2012 19:17:39 +0200 Subject: [PATCH] right, no list, just a string to pass to subprocess --- debian_build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5