[tor-commits] [tor-browser/tor-browser-38.3.0esr-5.5-2] Back out changes for bug 16909
gk at torproject.org
gk at torproject.org
Sun Sep 20 06:48:09 UTC 2015
commit fc16b4e722d7a956563eb6c008f9b88f5aef8434
Author: Georg Koppen <gk at torproject.org>
Date: Sun Sep 20 06:47:07 2015 +0000
Back out changes for bug 16909
---
tools/update-packaging/make_full_update.sh | 5 +----
tools/update-packaging/make_incremental_update.sh | 13 +++++--------
2 files changed, 6 insertions(+), 12 deletions(-)
diff --git a/tools/update-packaging/make_full_update.sh b/tools/update-packaging/make_full_update.sh
index 3578ae4..62baf4c 100755
--- a/tools/update-packaging/make_full_update.sh
+++ b/tools/update-packaging/make_full_update.sh
@@ -11,10 +11,7 @@
. $(dirname "$0")/common.sh
# TODO: it would be better to pass this as a command line option.
-# Make sure we delete the pre 5.1.0 HTTPS Everywhere as well in case it
-# exists. The extension ID got changed with the version bump to 5.1.0.
-ext_path='TorBrowser/Data/Browser/profile.default/extensions'
-directories_to_remove="$ext_path/https-everywhere at eff.org $ext_path/https-everywhere-eff at eff.org"
+directories_to_remove='TorBrowser/Data/Browser/profile.default/extensions/https-everywhere at eff.org'
# -----------------------------------------------------------------------------
diff --git a/tools/update-packaging/make_incremental_update.sh b/tools/update-packaging/make_incremental_update.sh
index c803809..0e1e3f6 100755
--- a/tools/update-packaging/make_incremental_update.sh
+++ b/tools/update-packaging/make_incremental_update.sh
@@ -64,8 +64,7 @@ check_for_forced_update() {
fi
# If the file in the skip list ends with /*, do a prefix match.
- # This allows TorBrowser/Data/Browser/profile.default/extensions/https-everywhere-eff at eff.org/*
- # to be used to force all HTTPS Everywhere files to be updated.
+ # This allows TorBrowser/Data/Browser/profile.default/extensions/https-everywhere at eff.org/* to be used to force all HTTPS Everywhere files to be updated.
f_suffix=${f##*/}
if [[ $f_suffix = "*" ]]; then
f_prefix="${f%\/\*}";
@@ -123,7 +122,7 @@ archivefiles="updatev2.manifest updatev3.manifest"
# If the NoScript or HTTPS Everywhere extensions have changed between
# releases, add them to the "force updates" list.
ext_path='TorBrowser/Data/Browser/profile.default/extensions'
-https_everywhere='https-everywhere-eff at eff.org'
+https_everywhere='https-everywhere at eff.org'
noscript='{73a6fe31-595d-460b-a920-fcc0f8843232}.xpi'
# NoScript is a packed extension, so we simply compare the old and the new
@@ -145,14 +144,12 @@ https_everywhere_install_rdf="$ext_path/$https_everywhere/install.rdf"
diff "$olddir/$https_everywhere_install_rdf" \
"$newdir/$https_everywhere_install_rdf" > /dev/null
rc=$?
-if [ $rc -gt 1 -a -e "$olddir/$https_everywhere_install_rdf" ]; then
+if [ $rc -gt 1 ]; then
notice "Unexpected exit $rc from $https_everywhere_install_rdf diff command"
exit 2
-elif [ $rc -ge 1 ]; then
+elif [ $rc -eq 1 ]; then
requested_forced_updates="$requested_forced_updates $ext_path/$https_everywhere/*"
- # Make sure we delete the pre 5.1.0 HTTPS Everywhere as well in case it
- # exists. The extension ID got changed with the version bump to 5.1.0.
- directories_to_remove="$directories_to_remove $ext_path/https-everywhere at eff.org $ext_path/$https_everywhere"
+ directories_to_remove="$directories_to_remove $ext_path/$https_everywhere"
fi
mkdir -p "$workdir"
More information about the tor-commits
mailing list