mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
update-python-resources: handle no sdist for package
This commit is contained in:
parent
dbe8453855
commit
b08d1a28ad
@ -35,6 +35,8 @@ module PyPI
|
||||
end
|
||||
|
||||
sdist = json["urls"].find { |url| url["packagetype"] == "sdist" }
|
||||
return json["info"]["name"] if sdist.nil?
|
||||
|
||||
[json["info"]["name"], sdist["url"], sdist["digests"]["sha256"]]
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user