[tor-commits] [Git][tpo/applications/tor-browser-build][maint-13.0] Bug 40979: Add redirects from old linux filenames in .htaccess, part 2

richard (@richard) git at gitlab.torproject.org
Tue Oct 31 18:08:01 UTC 2023



richard pushed to branch maint-13.0 at The Tor Project / Applications / tor-browser-build


Commits:
e893fe92 by Nicolas Vigier at 2023-10-31T18:07:31+00:00
Bug 40979: Add redirects from old linux filenames in .htaccess, part 2

In a previous commit we already updated projects/release/build for that,
however we re-generate the .htaccess file during the signing process, in
tools/signing/staticiforme-prepare-cdn-dist-upload.

- - - - -


1 changed file:

- tools/signing/staticiforme-prepare-cdn-dist-upload


Changes:

=====================================
tools/signing/staticiforme-prepare-cdn-dist-upload
=====================================
@@ -11,6 +11,17 @@ RewriteRule ^sha256sums.txt.asc$ sha256sums-unsigned-build.txt.asc
 RewriteRule ^sha256sums.incrementals.txt$ sha256sums-unsigned-build.incrementals.txt
 RewriteRule ^sha256sums.incrementals.txt.asc$ sha256sums-unsigned-build.incrementals.txt.asc
 EOF
+
+# Adding redirects for tor-browser-build#40979
+if is_project torbrowser; then
+  cat >> "$dist_dir/.htaccess" << 'EOF'
+RewriteRule ^tor-browser-linux64-(.*)_ALL.tar.xz.asc$ tor-browser-linux-x86_64-$1.tar.xz.asc
+RewriteRule ^tor-browser-linux64-(.*)_ALL.tar.xz$ tor-browser-linux-x86_64-$1.tar.xz
+RewriteRule ^tor-browser-linux32-(.*)_ALL.tar.xz.asc$ tor-browser-linux-i686-$1.tar.xz.asc
+RewriteRule ^tor-browser-linux32-(.*)_ALL.tar.xz$ tor-browser-linux-i686-$1.tar.xz
+EOF
+fi
+
 chgrp -R tb-release "$dist_dir"
 chmod 775 "$dist_dir"
 chmod 664 "$dist_dir"/*



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/e893fe92c50f755490b674e1a0d88d35ef7aa8fd

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/e893fe92c50f755490b674e1a0d88d35ef7aa8fd
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/20231031/ab84bfa0/attachment-0001.htm>


More information about the tor-commits mailing list