bug 512477: make_incremental_updates.py needs to have quotations around filenames in shell command. r=bhearsum, patch=lsblakk

git-svn-id: svn://10.0.0.236/trunk@258227 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bhearsum%mozilla.com 2009-08-25 16:35:20 +00:00
parent c04f74fe32
commit 2431109d29

View File

@ -164,7 +164,7 @@ def extract_mar(filename, work_dir):
saved_path = os.getcwd()
try:
os.chdir(work_dir)
exec_shell_cmd("mar -x "+filename)
exec_shell_cmd('mar -x "'+filename+'"')
finally:
os.chdir(saved_path)
@ -186,7 +186,7 @@ def create_partial_patch_for_file(from_marfile_entry, to_marfile_entry, shas, pa
os.makedirs(patch_file_dir)
# Create bzip'd patch file
exec_shell_cmd("mbsdiff "+from_marfile_entry.abs_path+" "+to_marfile_entry.abs_path+" "+patch_file_abs_path)
exec_shell_cmd('mbsdiff "'+from_marfile_entry.abs_path+'" "'+to_marfile_entry.abs_path+'" "'+patch_file_abs_path+'"')
bzip_file(patch_file_abs_path)
# Create bzip's full file