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-02-01 22:35:04 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2018-02-02 01:45:03 +0300
commite81e90bd84c9e96a9ffd03b84ab5d8c5ff192bb1 (patch)
tree07a974e8a54a4e18e3dba1d7bad82917681a4034
parentd7c649fa5a460ea28b42c50cc0750d8b118088c6 (diff)
mksetupini: mutually imply disable-checks for requires: and depends:
Disabling either of 'missing-depended-package' or 'missing-required-package' checks, implies both of these checks are disabled (since depends: is generated from requires:, and vice versa, if not present)
-rwxr-xr-xcalm/mksetupini.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/calm/mksetupini.py b/calm/mksetupini.py
index 10daa4e..d788559 100755
--- a/calm/mksetupini.py
+++ b/calm/mksetupini.py
@@ -157,6 +157,16 @@ def main():
if args.okmissing:
args.disable_check.extend(['missing-' + m for m in args.okmissing])
+ # disabling either of these checks, implies both of these are disabled
+ # (since depends: is generated from requires:, and vice versa, if not
+ # present)
+ implied = ['missing-depended-package', 'missing-required-package']
+ for p in implied:
+ if p in args.disable_check:
+ for c in implied:
+ if c not in args.disable_check:
+ args.disable_check.append(c)
+
return do_main(args)