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>2017-11-09 19:12:56 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2017-11-09 21:05:43 +0300
commit9282c36d3e680ee8c7e296fb1ecb43d84d45301b (patch)
tree960c3991eafa0ea6ec1d8b7d2b180f60c5c27e7d /calm/hint.py
parent52d4829e555044f3a4ca5601b836c1a32b7ceb42 (diff)
Add basic build-depends: handling
Converting a dependency atom to a package name with full generality requires a database of all the pathnames contained in all packages, which we don't have (yet) For the moment, pass through dependency atoms which are cygwin package names, and filter out all other kinds of dependency atoms Also check that build-depends: is being applied to a source package
Diffstat (limited to 'calm/hint.py')
-rwxr-xr-xcalm/hint.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/calm/hint.py b/calm/hint.py
index f0e8ae7..0c9fd50 100755
--- a/calm/hint.py
+++ b/calm/hint.py
@@ -309,6 +309,9 @@ def hint_file_parse(fn, kind):
if 'requires' in hints:
hints['requires'] = split_trim_sort_join(hints['requires'], None, ' ')
+ if 'build-depends' in hints:
+ hints['build-depends'] = split_trim_sort_join(hints['build-depends'], None, ' ')
+
if 'depends' in hints:
hints['depends'] = split_trim_sort_join(hints['depends'], ',')