aboutsummaryrefslogtreecommitdiffstats
path: root/dlpcvp.py
diff options
context:
space:
mode:
Diffstat (limited to 'dlpcvp.py')
-rwxr-xr-xdlpcvp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dlpcvp.py b/dlpcvp.py
index 1a54b92..f8ccec0 100755
--- a/dlpcvp.py
+++ b/dlpcvp.py
@@ -79,7 +79,7 @@ def suse_packages(proj: str) -> Iterable[str]:
raise
-def parse_spec_in_dev_null(spec_file, pkg):
+def parse_spec_in_dev_null(spec_file: str, pkg: str) -> Optional[Tuple[str, str]]:
# rpm library generates awful lot of nonsensical goo on
# stderr
with open(os.devnull, 'wb') as nullf:
@@ -181,7 +181,7 @@ def package_version(proj: str, pkg_name: str, con: sqlite3.Connection) \
spec_files.append(name)
except HTTPError as ex:
if ex.getcode() == 404:
- log.error(f'Cannot accquire version of {pkg_name} in {proj}')
+ log.error(f'Cannot acquire version of {pkg_name} in {proj}')
return None
else:
raise