diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-11-15 17:05:32 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2017-11-30 15:21:14 +0300 |
commit | 5e90fe3bcba7e55876b9837f6cfecceef7e7f53e (patch) | |
tree | a810d6a5881784721f98d5cb956c391d143b0844 /calm/mksetupini.py | |
parent | cd23cb2d268a566d224785ae14f77ea4cc8e6061 (diff) |
Add a disable-check: key in override.hint to disable certain checks
Add a disable-check: key to hints to disable certain checks, rather than a
static lists in past_mistakes (which needs calm restarting to re-read)
disable-check: contains a list of tokens, similar to those for the
--disable-check option, which indicates which checks are to be downgraded
from errors to warnings for this package
in override.hint, disable-check: can contain:
curr-most-recent
check that the curr: version is the most recent non-test version
Also, don't consider equal mtime to be newer
Also, allow curr-most-recent to be disabled by --disable-check
Diffstat (limited to 'calm/mksetupini.py')
-rwxr-xr-x | calm/mksetupini.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/calm/mksetupini.py b/calm/mksetupini.py index deeaf80..aa8f4c4 100755 --- a/calm/mksetupini.py +++ b/calm/mksetupini.py @@ -101,7 +101,7 @@ def main(): parser = argparse.ArgumentParser(description='Make setup.ini') parser.add_argument('--arch', action='store', required=True, choices=common_constants.ARCHES) - parser.add_argument('--disable-check', action='append', help='checks to disable', choices=['missing-curr', 'missing-depended-package', 'missing-obsoleted-package', 'missing-required-package'], default=[]) + parser.add_argument('--disable-check', action='append', help='checks to disable', choices=['missing-curr', 'missing-depended-package', 'missing-obsoleted-package', 'missing-required-package', 'curr-most-recent'], default=[]) parser.add_argument('--inifile', '-u', action='store', help='output filename', required=True) parser.add_argument('--okmissing', action='append', help='superseded by --disable-check', choices=['curr', 'depended-package', 'obsoleted-package', 'required-package']) parser.add_argument('--pkglist', action='store', nargs='?', metavar='FILE', help="package maintainer list (default: " + pkglist_default + ")", const=pkglist_default) |