@@ -36,53 +36,6 @@ def get_gardenlinux_commit(gardenlinux_root: str, limit: Optional[int] = None) -
3636 else :
3737 return commit_str
3838
39- def get_features_dict (
40- cname : str , gardenlinux_root : str , feature_dir_name : str = "features"
41- ) -> dict :
42- """
43- :param str cname: the target cname to get the feature dict for
44- :param str gardenlinux_root: path of garden linux src root
45- :return: dict with list of features for a given cname, split into platform, element and flag
46-
47- """
48-
49- return Parser (gardenlinux_root , feature_dir_name ).filter_as_dict (cname )
50-
51- def get_features_graph (
52- cname : str , gardenlinux_root : str , feature_dir_name : str = "features"
53- ) -> networkx .Graph :
54- """
55- :param str cname: the target cname to get the feature dict for
56- :param str gardenlinux_root: path of garden linux src root
57- :return: list of features for a given cname
58-
59- """
60-
61- return Parser (gardenlinux_root , feature_dir_name ).filter (cname )
62-
63- def get_features_list (
64- cname : str , gardenlinux_root : str , feature_dir_name : str = "features"
65- ) -> list :
66- """
67- :param str cname: the target cname to get the feature dict for
68- :param str gardenlinux_root: path of garden linux src root
69- :return: list of features for a given cname
70-
71- """
72-
73- return Parser (gardenlinux_root , feature_dir_name ).filter_as_list (cname )
74-
75- def get_features (
76- cname : str , gardenlinux_root : str , feature_dir_name : str = "features"
77- ) -> str :
78- """
79- :param str cname: the target cname to get the feature set for
80- :param str gardenlinux_root: path of garden linux src root
81- :return: a comma separated string with the expanded feature set for the cname
82- """
83-
84- return Parser (gardenlinux_root , feature_dir_name ).filter_as_string (cname )
85-
8639def construct_layer_metadata (
8740 filetype : str , cname : str , version : str , arch : str , commit : str
8841) -> dict :
@@ -123,7 +76,7 @@ def get_file_set_from_cname(cname: str, version: str, arch: str, gardenlinux_roo
12376 :return: set of file names for a given cname
12477 """
12578 file_set = set ()
126- features_by_type = get_features_dict ( cname , gardenlinux_root )
79+ features_by_type = Parser ( gardenlinux_root ). filter_as_dict ( cname )
12780 commit_str = get_gardenlinux_commit (gardenlinux_root , 8 )
12881
12982 if commit_str == "local" :
0 commit comments