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>2020-02-19 02:29:40 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2020-02-19 19:28:42 +0300
commit31865d5e209689b94844a6208e2df4840ae842f4 (patch)
treef1d7518757b5e678849e2af71c5bc74652cdf456 /calm/hint.py
parent0c1b671e3e3ca0c5b6b964cc8de3623764fb203a (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-xcalm/hint.py8
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
#