Skip to content
Snippets Groups Projects
Verified Commit 073b7c85 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame :jack_o_lantern:
Browse files

fixup! Bug 41668: Tweaks to the Base Browser updater for Tor Browser

Bug 41776: Keep shipping the old fontconfig file until users have one
parent 16c0f67a
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,28 @@ make_add_if_not_instruction() {
echo "add-if-not \"$f\" \"$f\"" >> "$filev3"
}
check_for_add_if_update() {
add_if_file_chk="$1"
# tor-browser#41776: We will remove with the old fontconfig file manually
# outside the update process. So, let the updater add the file if there.
# TODO: Remove once we do a watershed release.
if [ "$add_if_file_chk" = "TorBrowser/Data/fontconfig/fonts.conf" ]; then
## "true" *giggle*
return 0;
fi
## 'false'... because this is bash. Oh yay!
return 1;
}
make_add_if_instruction() {
f="$1"
filev3="$2"
verbose_notice " add-if \"$f\" \"$f\""
echo "add-if \"$f\" \"$f\"" >> "$filev3"
}
make_addsymlink_instruction() {
link="$1"
target="$2"
......
......@@ -106,6 +106,9 @@ for ((i=0; $i<$num_files; i=$i+1)); do
if check_for_add_if_not_update "$f"; then
make_add_if_not_instruction "$f" "$updatemanifestv3"
elif check_for_add_if_update "$f"; then
# TODO: Remove once we do a watershed release
make_add_if_instruction "$f" "$updatemanifestv3"
else
make_add_instruction "$f" "$updatemanifestv3"
fi
......
......@@ -220,6 +220,13 @@ for ((i=0; $i<$num_oldfiles; i=$i+1)); do
continue 1
fi
if check_for_add_if_update "$f"; then
# TODO: Remove once we do a watershed release
make_add_if_instruction "$f" "$updatemanifestv3"
archivefiles="$archivefiles \"$f\""
continue 1
fi
if check_for_forced_update "$requested_forced_updates" "$f"; then
# The full workdir may not exist yet, so create it if necessary.
mkdir -p `dirname "$workdir/$f"`
......@@ -328,6 +335,9 @@ for ((i=0; $i<$num_newfiles; i=$i+1)); do
if check_for_add_if_not_update "$f"; then
make_add_if_not_instruction "$f" "$updatemanifestv3"
elif check_for_add_if_update "$f"; then
# TODO: Remove once we do a watershed release
make_add_if_instruction "$f" "$updatemanifestv3"
else
make_add_instruction "$f" "$updatemanifestv3"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment