Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#63973 - [arch-signoff] 0.2.2-1 errors out when attempting to signoff package flagged as 'bad'
Attached to Project:
Arch Linux
Opened by jason ryan (jasonwryan) - Tuesday, 01 October 2019, 06:26 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 26 January 2020, 15:18 GMT
Opened by jason ryan (jasonwryan) - Tuesday, 01 October 2019, 06:26 GMT
Last edited by Jelle van der Waa (jelly) - Sunday, 26 January 2020, 15:18 GMT
|
DetailsDescription: Attempting to sign off a package marked as "bad" in the web interface creates the following, unhelpful, error:
:: Sign off mesa? [y/N]: y Traceback (most recent call last): File "/usr/bin/signoff", line 11, in <module> load_entry_point('arch-signoff==0.2.1', 'console_scripts', 'signoff')() File "/usr/lib/python3.7/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/usr/lib/python3.7/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/usr/lib/python3.7/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3.7/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/usr/lib/python3.7/site-packages/signoff/__init__.py", line 401, in main session.signoff_package(signoff_pkg) File "/usr/lib/python3.7/site-packages/signoff/__init__.py", line 72, in signoff_package self.session.get(self._signoff_url(package)).raise_for_status() File "/usr/lib/python3.7/site-packages/requests/models.py", line 940, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://www.archlinux.org/packages/Testing/x86_64/mesa/signoff/ Steps to reproduce: signoff 'Y' a package marked as "bad" A more helpful error message would be grand. |
This task depends upon
Lines 72 and ... 84? could be replaced. Instead of "raise_for_status", response could be checked and if it's an error response, raise an exception. If it's error 403, note that this probably means the package is flagged as "bad" and unable to be signed-off on.
I'd do it myself.. but it's 3am and I don't feel like it right now.