Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not search for releases when fallback disallowed
The fuction "request.locator.get_releases" looking for releases in an upstream was called regardless of permissions that were set on a given package. Looking for releases of packages in the upstream that were disallowed by the "pypi.disallow_fallback" option exposed the names of disallowed packages to the upstream. This is unsolicited behavior. This change also fixes these warnings that were logged for all disallowed packages: WARNING [pypicloud.locator] Error fetching 'package1' from upstream: 404 Client Error: Not Found for url: https://pypi.org/pypi/package1/json Fixed issue stevearc#327
- Loading branch information