Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2018-05-14 21:44:59 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2018-05-14 22:30:16 +0300
commit360ce8ab8fad46abe3611abf207c643595ca5fd8 (patch)
tree57db0cb029e8b4cd41475444ede9defe67e91854
parentdf1e7872cba3de9b6f564c585d4e423aa1452581 (diff)
Ignore test-only packages in non-unique current versions check
-rwxr-xr-xcalm/package.py5
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', ''))):