Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bug 658094 - Partial updates for 5.0b1 on Mac fail. r=nrthomas

  • Loading branch information...
commit 5e2f0e6dd8eb4bc3fcf3b5e38ea10220993abf57 1 parent 9832436
Robert Strong authored
View
2  tools/update-packaging/common.sh
@@ -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
View
8 tools/update-packaging/make_incremental_updates.py
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.