[tor-commits] [Git][tpo/applications/tor-browser-build][maint-13.0] Bug 41039: Keep download-*.json files from previous version when new version does not include them
boklm (@boklm)
git at gitlab.torproject.org
Tue Dec 12 09:51:48 UTC 2023
boklm pushed to branch maint-13.0 at The Tor Project / Applications / tor-browser-build
Commits:
7a02d02f by Nicolas Vigier at 2023-12-12T10:51:04+01:00
Bug 41039: Keep download-*.json files from previous version when new version does not include them
- - - - -
1 changed file:
- tools/signing/upload-update_responses-to-staticiforme
Changes:
=====================================
tools/signing/upload-update_responses-to-staticiforme
=====================================
@@ -26,8 +26,22 @@ test -n "$(git status --porcelain=v1 | grep -v '^?')" \
is_project torbrowser && cd update_3
is_project mullvadbrowser && cd update_1
-rm -Rf "$tbb_version_type"
+old_ur=$(mktemp -d)
+trap "rm -Rf $old_ur" EXIT
+mv "$tbb_version_type" "$old_ur/$tbb_version_type"
tar -xf "$update_responses_tar"
+
+# Keep download-*.json files from previous release if they are not in
+# the new release. This happens when a release does not include some
+# platforms. See tor-browser-build#41039.
+IFS=$'\n'
+for file in $(ls -1 "$old_ur/$tbb_version_type"/download-*.json)
+do
+ fname=$(basename "$file")
+ test -f "$tbb_version_type/$fname" && continue
+ mv "$file" "$tbb_version_type/$fname"
+done
+
git add "$tbb_version_type"
git commit -m "$tbb_version_type: new version, $tbb_version"
git push
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/7a02d02f2c6784828269335ca7c353a5c25aca94
--
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/7a02d02f2c6784828269335ca7c353a5c25aca94
You're receiving this email because of your account on gitlab.torproject.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20231212/f9ce1f6e/attachment-0001.htm>
More information about the tor-commits
mailing list