diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2018-05-14 21:44:59 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2018-05-14 22:30:16 +0300 |
commit | 360ce8ab8fad46abe3611abf207c643595ca5fd8 (patch) | |
tree | 57db0cb029e8b4cd41475444ede9defe67e91854 | |
parent | df1e7872cba3de9b6f564c585d4e423aa1452581 (diff) |
Ignore test-only packages in non-unique current versions check
-rwxr-xr-x | calm/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/calm/package.py b/calm/package.py index 6a1df72..3fe2c40 100755 --- a/calm/package.py +++ b/calm/package.py @@ -756,6 +756,11 @@ def validate_packages(args, packages): if re.match(r'^lib.*\d', install_p): continue + # ignore packages which don't have a current version (i.e. are test + # only) + if 'curr' not in packages[install_p].stability: + continue + # ignore specific packages we disable this check for if ((install_p in past_mistakes.nonunique_versions) or ('unique-version' in packages[install_p].version_hints[packages[install_p].best_version].get('disable-check', ''))): |