mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user