Fix quoting of filenames when invoking external commands like strip and upx

git-svn-id: http://svn.pyinstaller.org/trunk@276 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
giovannibajo
2006-05-16 15:26:06 +00:00
parent 96299a8ac9
commit 34fb5a91c4
+2 -2
View File
@@ -317,9 +317,9 @@ def checkCache(fnm, strip, upx):
if upx:
if strip:
fnm = checkCache(fnm, 1, 0)
cmd = "upx --best -q %s" % cachedfile
cmd = "upx --best -q \"%s\"" % cachedfile
else:
cmd = "strip %s" % cachedfile
cmd = "strip \"%s\"" % cachedfile
shutil.copy2(fnm, cachedfile)
os.chmod(cachedfile, 0755)
os.system(cmd)