diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2018-09-26 00:30:17 +0100 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2018-12-03 09:46:13 +0000 |
commit | 1b24148fdadcafaf4b316cc45819a06d8ec42647 (patch) | |
tree | 3940bd30844326b19150f9db0926697dab07fd2b /buildstream/types.py | |
parent | 87ba19d77393bce1bcc03df36a12e91010500451 (diff) | |
download | buildstream-1b24148fdadcafaf4b316cc45819a06d8ec42647.tar.gz |
Ensure `--deps=none` option works for `bst checkout`
Currently, `bst checkout --deps none` command always produces empty
output. Fix this issue and add regression test for the same.
- element_enums.py: Add Scope.NONE.
- element.py: Ensure Scope.NONE works correctly in addition to
Scope.RUN/Scope.ALL in Element.dependencies() and Element.search().
- tests/frontend/buildcheckout.py: Fix tests for `--deps none`.
Fixes #670.
Diffstat (limited to 'buildstream/types.py')
-rw-r--r-- | buildstream/types.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/buildstream/types.py b/buildstream/types.py index 7bc7a1664..3eb4a9110 100644 --- a/buildstream/types.py +++ b/buildstream/types.py @@ -48,6 +48,12 @@ class Scope(Enum): itself. """ + NONE = 4 + """Just the element itself, no dependencies. + + *Since: 1.4* + """ + class Consistency(): """Defines the various consistency states of a :class:`.Source`. |