From 1b24148fdadcafaf4b316cc45819a06d8ec42647 Mon Sep 17 00:00:00 2001 From: Chandan Singh Date: Wed, 26 Sep 2018 00:30:17 +0100 Subject: 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. --- buildstream/types.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'buildstream/types.py') 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`. -- cgit v1.2.1