File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 22
33# GardenLinux "bare" feature
44BARE_FLAVOR_FEATURE_CONTENT = { "description" : "Bare flavor" , "type" : "platform" }
5+ BARE_FLAVOR_LIBC_FEATURE_CONTENT = { "description" : "Bare libc feature" , "type" : "element" }
56
67# GardenLinux flavors schema for validation
78GL_FLAVORS_SCHEMA = {
Original file line number Diff line number Diff line change 99import subprocess
1010import yaml
1111
12- from ..constants import BARE_FLAVOR_FEATURE_CONTENT
12+ from ..constants import BARE_FLAVOR_FEATURE_CONTENT , BARE_FLAVOR_LIBC_FEATURE_CONTENT
1313from ..logger import LoggerSetup
1414
1515
@@ -75,7 +75,11 @@ def filter(
7575 for feature in input_features :
7676 # @TODO: Remove "special" handling once "bare" is a first-class citizen of the feature graph
7777 if feature == "bare" :
78- self .graph .add_node ("bare" , content = BARE_FLAVOR_FEATURE_CONTENT )
78+ if not self .graph .has_node ("bare" ):
79+ self .graph .add_node ("bare" , content = BARE_FLAVOR_FEATURE_CONTENT )
80+ if not self .graph .has_node ("libc" ):
81+ self .graph .add_node ("libc" , content = BARE_FLAVOR_LIBC_FEATURE_CONTENT )
82+
7983 continue
8084
8185 filter_set .update (networkx .descendants (Parser ._get_graph_view_for_attr (self .graph , "include" ), feature ))
You can’t perform that action at this time.
0 commit comments