From: Mathias Klette Date: Wed, 16 May 2012 13:34:13 +0000 (+0200) Subject: let's use the correct paths X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=ee88018dd8d1e372d7c6787e256d662ba8310e68;p=profitbricks%2Fjenkins-build-scripts.git let's use the correct paths --- diff --git a/debian_build.py b/debian_build.py index cce7a2e..b773376 100755 --- a/debian_build.py +++ b/debian_build.py @@ -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,