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

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



Title: GitLab

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

Commits:

  • 6ea176f3
    by Pier Angelo Vendrame at 2025-03-03T18:33:04+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
    ... ... @@ -413,7 +413,7 @@ class ReleasePreparation:
    413 413
             hash_url = f"https://github.com/openssl/openssl/releases/download/openssl-{version}/openssl-{version}.tar.gz.sha256"
    
    414 414
             r = requests.get(hash_url)
    
    415 415
             r.raise_for_status()
    
    416
    -        source["sha256sum"] = r.text.strip()
    
    416
    +        source["sha256sum"] = r.text.strip()[:64]
    
    417 417
             self.save_config("openssl", config)
    
    418 418
             logger.debug("Updated OpenSSL to %s and config saved.", version)
    
    419 419
     
    

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