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>2021-05-25 15:08:35 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2021-05-29 16:28:12 +0300
commita19693172eaa93311b0a8aada3667d8fa8d4d2d7 (patch)
tree0faf31e61ac0ea8351e04c57b1d385b8b7bc1cf4
parenta5cf1fbb3bc0b4bf5ce602f03eb2c0c4b8a94774 (diff)
Only log about no-for-output once
We want this to be shown for an upload introducing a new package like this, but not every time for existing packages. Future work: move this so it runs as part of post-upload package checking, not on every run.
-rwxr-xr-xcalm/package.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/calm/package.py b/calm/package.py
index 75dfc4c..9b3d8ad 100755
--- a/calm/package.py
+++ b/calm/package.py
@@ -594,8 +594,11 @@ def validate_packages(args, packages):
# 'not_for_output'
if packages[p].kind == Kind.binary:
if not has_nonempty_install and not has_requires and not obsolete:
- packages[p].not_for_output = True
- logging.info("package '%s' has no non-empty install tarfiles and no dependencies, marking as 'not_for_output'" % (p))
+ if not packages[p].not_for_output:
+ packages[p].not_for_output = True
+ logging.info("package '%s' has no non-empty install tarfiles and no dependencies, marking as 'not for output'" % (p))
+ else:
+ packages[p].not_for_output = False
levels = ['test', 'curr', 'prev']