Verified Commit 0c8bdf13 authored by Pier Angelo Vendrame's avatar Pier Angelo Vendrame 🎃
Browse files

Bug 41708: mkdir out/browser in relprep.py before downloading addons.

Otherwise, the download might fail if that directory does not exist
yet.
parent 528e744e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -396,7 +396,9 @@ class ReleasePreparation:
            logger.debug("No need to update the %s extension.", name)
            return
        input_["URL"] = url
        path = self.base_path / "out/browser" / url.split("/")[-1]
        path = self.base_path / "out/browser"
        path.mkdir(parents=True, exist_ok=True)
        path /= url.split("/")[-1]
        # The extension should be small enough to easily fit in memory :)
        if not path.exists():
            r = requests.get(url)