Support deprecated licenses for download
Fixes #186
Can't be merged; needs to use urllib instead of requests.
Can't be merged; needs to use urllib instead of requests.
Would you please elaborate a bit about that problem? The code looks good to me.
Also, in order to fix #186 completely, should we perhaps only issue the message about a broken connection in case we can't download any licenses? We could even try to access a known-good license as a check.
Would you please elaborate a bit about that problem? The code looks good to me.
After this PR was created, we merged a PR that removed the (direct) dependency on requests. The test code currently mocks/monkeypatches the requests library. We'll have to rewrite that line of code to use urllib instead.
Also, in order to fix https://github.com/fsfe/reuse-tool/issues/186 completely, should we perhaps only issue the message about a broken connection in case we can't download any licenses? We could even try to access a known-good license as a check.
I don't know. It would be nice to improve the error handling and/or error message here, but I'm more inclined to do that as a separate issue/PR.