diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2017-11-09 19:12:56 +0300 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2017-11-09 21:05:43 +0300 |
commit | 9282c36d3e680ee8c7e296fb1ecb43d84d45301b (patch) | |
tree | 960c3991eafa0ea6ec1d8b7d2b180f60c5c27e7d /calm/hint.py | |
parent | 52d4829e555044f3a4ca5601b836c1a32b7ceb42 (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-x | calm/hint.py | 3 |
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'], ',') |