diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2019-03-06 14:10:11 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2019-03-06 14:10:11 +0100 |
commit | ddd49268408af6391591f293096834e243348134 (patch) | |
tree | d6f701fb79ed0ade66d9ff2047e1b323e68480ff | |
parent | facfd9d9b824123f83977b125f5f4442f724cd11 (diff) | |
download | dlp_check_version_PyPI-ddd49268408af6391591f293096834e243348134.tar.gz |
Ignore aggregate packages.
Fixes #1
-rwxr-xr-x | dlpcvp.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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}.') |