Pier Angelo Vendrame pushed to branch maint-14.0 at The Tor Project / 
Applications / tor-browser-build


Commits:
7fa2c5e4 by Pier Angelo Vendrame at 2025-03-03T18:31:34+01:00
Bug 41384: Fix the way we fetch OpenSSL sha256.

OpenSSL used to have only the hash of the source archive in their
.sha256 file, without the archive name.
At a certain point, they moved to the format generated by sha256sum, so
we need to update relprep.py to take that into account.

- - - - -


1 changed file:

- tools/relprep.py


Changes:

=====================================
tools/relprep.py
=====================================
@@ -392,7 +392,7 @@ class ReleasePreparation:
         hash_url = 
f"https://github.com/openssl/openssl/releases/download/openssl-{version}/openssl-{version}.tar.gz.sha256";
         r = requests.get(hash_url)
         r.raise_for_status()
-        source["sha256sum"] = r.text.strip()
+        source["sha256sum"] = r.text.strip()[:64]
         self.save_config("openssl", config)
         logger.debug("Updated OpenSSL to %s and config saved.", version)
 



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

-- 
View it on GitLab: 
https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/7fa2c5e4fd3553f3fa697d930829f34d6451f1b9
You're receiving this email because of your account on gitlab.torproject.org.


_______________________________________________
tor-commits mailing list -- tor-commits@lists.torproject.org
To unsubscribe send an email to tor-commits-le...@lists.torproject.org

Reply via email to