mirror of
https://github.com/Mic92/nix-update.git
synced 2024-09-17 13:27:27 +03:00
Ignore yanked versions in fetchCrate
This commit is contained in:
parent
5bfdcbecf4
commit
e278a56d12
@ -15,4 +15,6 @@ def fetch_crate_versions(url: ParseResult) -> list[Version]:
|
|||||||
info(f"fetch {crate_url}")
|
info(f"fetch {crate_url}")
|
||||||
resp = urllib.request.urlopen(crate_url)
|
resp = urllib.request.urlopen(crate_url)
|
||||||
data = json.loads(resp.read())
|
data = json.loads(resp.read())
|
||||||
return [Version(version["num"]) for version in data["versions"]]
|
return [
|
||||||
|
Version(version["num"]) for version in data["versions"] if not version["yanked"]
|
||||||
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user