aboutsummaryrefslogtreecommitdiffstats
path: root/dlpcvp.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2019-02-15 23:15:57 +0100
committerMatěj Cepl <mcepl@cepl.eu>2019-02-15 23:17:23 +0100
commit200a604bf514529d1332631f559912bdd9ec1fa0 (patch)
tree0fa51820d13c10f2ab005f7c97bec7c20a092b07 /dlpcvp.py
parent0a64179efcc8eae1ff77386be14ec081aa1b68de (diff)
downloaddlp_check_version_PyPI-200a604bf514529d1332631f559912bdd9ec1fa0.tar.gz
Updates PEP484 types.
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