diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-02-19 02:29:40 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-02-19 19:28:42 +0300 |
commit | 31865d5e209689b94844a6208e2df4840ae842f4 (patch) | |
tree | f1d7518757b5e678849e2af71c5bc74652cdf456 /calm/hint.py | |
parent | 0c1b671e3e3ca0c5b6b964cc8de3623764fb203a (diff) |
Transfer 'perl5_26' annotation from comment to a notes: key
Transfer 'perl5_26' annotation from comment to a notes: key. This
ensures it survives other hint transformations.
Diffstat (limited to 'calm/hint.py')
-rwxr-xr-x | calm/hint.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/calm/hint.py b/calm/hint.py index 608cc96..c2d702c 100755 --- a/calm/hint.py +++ b/calm/hint.py @@ -57,6 +57,7 @@ hintkeys[pvr] = { 'disable-check': 'val', 'provides': 'val', 'conflicts': 'val', + 'notes': 'val', # tool notes; not significant to calm itself } hintkeys[override] = { @@ -328,6 +329,13 @@ def hint_file_parse(fn, kind): return hints +# write hints |hints| to file |fn| +def hint_file_write(fn, hints): + with open(fn, 'w') as f: + for k, v in hints.items(): + print("%s: %s" % (k, v), file=f) + + # # words that Cygwin package maintainers apparently can't spell correctly # |