From 345e8accbcafb2efffae74aa5dc5d6d6f4ce9f23 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 8 Jul 2022 15:03:35 +0200 Subject: [PATCH] rust2rpm: fix logic in existence check (use correct URL for .spec) --- rust2rpm/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust2rpm/__main__.py b/rust2rpm/__main__.py index 071ce31..8ae8361 100644 --- a/rust2rpm/__main__.py +++ b/rust2rpm/__main__.py @@ -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