[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41384: Fix the way we fetch OpenSSL sha256.



Title: GitLab

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

Commits:

  • 06902e0b
    by Pier Angelo Vendrame at 2025-03-03T17:53:17+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:

Changes:

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

  • _______________________________________________
    tor-commits mailing list -- tor-commits@xxxxxxxxxxxxxxxxxxxx
    To unsubscribe send an email to tor-commits-leave@xxxxxxxxxxxxxxxxxxxx