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

[tor-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41708: mkdir out/browser in relprep.py before downloading addons.



Title: GitLab

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

Commits:

  • 3a9f91cb
    by Pier Angelo Vendrame at 2026-01-29T10:54:46+01:00
    Bug 41708: mkdir out/browser in relprep.py before downloading addons.
    
    Otherwise, the download might fail if that directory does not exist
    yet.
    

1 changed file:

Changes:

  • tools/relprep.py
    ... ... @@ -395,7 +395,9 @@ class ReleasePreparation:
    395 395
                 logger.debug("No need to update the %s extension.", name)
    
    396 396
                 return
    
    397 397
             input_["URL"] = url
    
    398
    -        path = self.base_path / "out/browser" / url.split("/")[-1]
    
    398
    +        path = self.base_path / "out/browser"
    
    399
    +        path.mkdir(parents=True, exist_ok=True)
    
    400
    +        path /= url.split("/")[-1]
    
    399 401
             # The extension should be small enough to easily fit in memory :)
    
    400 402
             if not path.exists():
    
    401 403
                 r = requests.get(url)
    

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