-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
Trying to download a Firefox build by only specifying the major version currently fails:
$ mozdownload -v 108
File "/Users/henrik/.pyenv/versions/3.10.11/lib/python3.10/site-packages/mozdownload/scraper.py", line 150, in _retry_check_404
self._retry(func, **retry_kwargs)
File "/Users/henrik/.pyenv/versions/3.10.11/lib/python3.10/site-packages/mozdownload/scraper.py", line 141, in _retry
return redo.retry(func, **retry_kwargs)
File "/Users/henrik/.pyenv/versions/3.10.11/lib/python3.10/site-packages/redo/__init__.py", line 170, in retry
return action(*args, **kwargs)
File "/Users/henrik/.pyenv/versions/3.10.11/lib/python3.10/site-packages/mozdownload/scraper.py", line 168, in _get_binary
parser = self._create_directory_parser(self.path)
File "/Users/henrik/.pyenv/versions/3.10.11/lib/python3.10/site-packages/mozdownload/scraper.py", line 158, in _create_directory_parser
return DirectoryParser(url,
File "/Users/henrik/.pyenv/versions/3.10.11/lib/python3.10/site-packages/mozdownload/parser.py", line 48, in __init__
r.raise_for_status()
File "/Users/henrik/.pyenv/versions/3.10.11/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://archive.mozilla.org/pub/firefox/releases/108/mac/en-US/
In such a case when no minor and bugfix version is included we should fallback to the latest bug fix release of this major release which in this case is 108.0.2.