rust2rpm: fix logic in existence check (use correct URL for .spec)
This commit is contained in:
parent
0544354e00
commit
345e8accbc
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ def get_package_info(package):
|
|||
# E.g. https://src.fedoraproject.org/rpms/rust-tiny_http0.6/blob/rawhide/f/rust-tiny_http0.6.spec
|
||||
full_url = json['full_url']
|
||||
spec_url = requests.compat.urljoin(full_url, f'blob/rawhide/f/rust-{package}.spec')
|
||||
req = requests.head(url, headers={"User-Agent": "rust2rpm"})
|
||||
req = requests.head(spec_url, headers={"User-Agent": "rust2rpm"})
|
||||
|
||||
if not req.ok:
|
||||
# The repo exists, but doesn't have the spec file. We most
|
||||
|
|
Loading…
Reference in a new issue