]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
let's use the correct paths
authorMathias Klette <mathias.klette@profitbricks.com>
Wed, 16 May 2012 13:34:13 +0000 (15:34 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Wed, 16 May 2012 13:34:13 +0000 (15:34 +0200)
debian_build.py

index cce7a2e08f4715f8efc2a792ae2539827dfb10c4..b7733764aed6eee529c4a71314b68fc4cd20548d 100755 (executable)
@@ -428,9 +428,9 @@ if __name__ == '__main__':
 
     # cleanup existing *orig.tar.gz
     if os.path.isdir('../build-area/'):
-        files = fnmatch.filter(os.listdir('../build-area/'),'*.orig.tar.gz')
+        files = [os.path.join('../build-area/',file) for file in fnmatch.filter(os.listdir('../build-area/'),'*.orig.tar.gz')]
         logger.debug('Previous upstream tarball(s) found: %s' %( files ))
-        cmd = [BIN_SUDO, BIN_RM, '-f', " ".join(files)]
+        cmd = [BIN_SUDO, BIN_RM, '-vf', " ".join(files)]
         cmdobj = subprocess.Popen(
                 cmd,
                 shell=False,