File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
22
3+ # GardenLinux "bare" feature
4+ BARE_FLAVOR_FEATURE_CONTENT = { "description" : "Bare flavor" , "type" : "platform" }
5+
36# GardenLinux flavors schema for validation
47GL_FLAVORS_SCHEMA = {
58 "type" : "object" ,
Original file line number Diff line number Diff line change 99import subprocess
1010import yaml
1111
12+ from ..constants import BARE_FLAVOR_FEATURE_CONTENT
1213from ..logger import LoggerSetup
1314
1415
@@ -72,6 +73,11 @@ def filter(
7273 filter_set = input_features .copy ()
7374
7475 for feature in input_features :
76+ # @TODO: Remove "special" handling once "bare" is a first-class citizen of the feature graph
77+ if feature == "bare" :
78+ self .graph .add_node ("bare" , content = BARE_FLAVOR_FEATURE_CONTENT )
79+ continue
80+
7581 filter_set .update (networkx .descendants (Parser ._get_graph_view_for_attr (self .graph , "include" ), feature ))
7682
7783 graph = networkx .subgraph_view (self .graph , filter_node = self ._get_filter_set_callable (filter_set , additional_filter_func ))
You can’t perform that action at this time.
0 commit comments