summaryrefslogtreecommitdiff
path: root/buildstream/_includes.py
Commit message (Collapse)AuthorAgeFilesLines
* _include.py: Move yaml related logic to _yaml.pyjennis/compose_backwardsJames Ennis2019-03-061-6/+1
|
* _includes: re-use file_path variableAngelos Evripiotis2019-02-111-1/+1
| | | | Avoid an unnecessary call to os.path.join().
* _includes: better error on including directoryAngelos Evripiotis2019-02-111-0/+4
| | | | | | | | | | | | | Previously, include a directory result in an error like this: mydir is a directory. bst command expects a .bst file. Note that the file containing the include was not mentioned. Now we get an error like this instead: element.bst [line 12 column 0]: Include block references a directory instead of a file: 'mydir'.
* _includes: better error on missing includeAngelos Evripiotis2019-02-111-2/+11
| | | | | | | | | | | | | Previously, a missing include would result in an error like this: Could not find file at not-a-file.include Note that the file containing the include was not mentioned. Now we get an error like this instead: element.bst [line 7 column 5]: Include block references a file that could not be found: 'not-a-file.include'.
* _includes: better provenance on recursive includeAngelos Evripiotis2019-02-111-2/+4
| | | | Use the provenance of the include block, instead of the whole node.
* Fix python warnings: Use collections.abc instead collectionsjjardon/warnings_collectionsJavier Jardón2018-10-181-1/+1
| | | | | | | | Since python 3.3, collections has been moved to collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.7. Subsequently, they will be removed entirely. See https://docs.python.org/3/library/collections.html
* buildstream/_includes.py: Fix caching of included fragments.Valentin David2018-08-211-1/+1
|
* Fix broken indentation after tracking.Valentin David2018-08-211-2/+7
| | | | | | | | | Issue was introduced by 171e803f (include directive) and the fix was found courtesy of @Qinusty. This fixes also the include feature. Because elements are to be serialized, the included fragments need to use copy_tree when loaded. Related to #470.
* Add support for include '(@)' in project.conf and .bst filesValentin David2018-08-021-0/+128
Fixes #331.