aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2019-03-06 14:10:11 +0100
committerMatěj Cepl <mcepl@cepl.eu>2019-03-06 14:10:11 +0100
commitddd49268408af6391591f293096834e243348134 (patch)
treed6f701fb79ed0ade66d9ff2047e1b323e68480ff
parentfacfd9d9b824123f83977b125f5f4442f724cd11 (diff)
downloaddlp_check_version_PyPI-ddd49268408af6391591f293096834e243348134.tar.gz
Ignore aggregate packages.
Fixes #1
-rwxr-xr-xdlpcvp.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/dlpcvp.py b/dlpcvp.py
index af4378d..6c4a300 100755
--- a/dlpcvp.py
+++ b/dlpcvp.py
@@ -148,6 +148,10 @@ def get_spec_name(req: Request, proj: str, pkg: str, etag: OStr = None) -> OStr:
name = elem.get('name')
if name.endswith('.spec'):
spec_files.append(name)
+ if name == '_aggregate':
+ log.warning(f'Package {pkg} is just aggregate, ignoring.')
+ return None
+
except HTTPError as ex:
if ex.getcode() == 404:
log.warning(f'Cannot acquire version of {pkg}.')