Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Bug 658094 - Partial updates for 5.0b1 on Mac fail. r=nrthomas
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Strong committed May 19, 2011
1 parent 9832436 commit 5e2f0e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/update-packaging/common.sh
Expand Up @@ -108,7 +108,7 @@ append_remove_instructions() {
fixedprefix=""
else
f=$(echo $f | sed -e 's:^\.\.\/::')
fixedprefix=$(echo "$prefix" | sed -e 's:^[^\/]*\/::')
fixedprefix=$(echo "$prefix" | sed -e 's:[^\/]*\/$::')
fi
fi
fi
Expand Down
8 changes: 7 additions & 1 deletion tools/update-packaging/make_incremental_updates.py
Expand Up @@ -302,9 +302,15 @@ def process_explicit_remove_files(dir_path, patch_info):
for line in lines:
# Exclude any blank and comment lines.
if line and not line.startswith("#"):
if prefix != "":
if line.startswith("../"):
line = line.replace("../../", "")
line = line.replace("../", "Contents/")
else:
line = os.path.join(prefix,line)
# Python on windows uses \ for path separators and the update
# manifests expects / for path separators on all platforms.
line=os.path.join(prefix,line).replace("\\", "/")
line = line.replace("\\", "/")
patch_info.append_remove_instruction(line)

def create_partial_patch(from_dir_path, to_dir_path, patch_filename, shas, patch_info, forced_updates):
Expand Down

0 comments on commit 5e2f0e6

Please sign in to comment.