pypi: handle ignore_non_pypi_packages correctly

Signed-off-by: William Woodruff <william@yossarian.net>
This commit is contained in:
William Woodruff 2023-07-02 21:08:54 -04:00
parent 91a9b57d1f
commit ed653ab219
No known key found for this signature in database

View File

@ -235,6 +235,7 @@ module PyPI
if main_package.valid_pypi_package? if main_package.valid_pypi_package?
main_package.version = version main_package.version = version
else else
return if ignore_non_pypi_packages
odie "The main package is not a PyPI package. Please update its URL manually." odie "The main package is not a PyPI package. Please update its URL manually."
end end
end end