rename to managedFeatures
This commit is contained in:
@@ -250,7 +250,7 @@ api_level_arch_detect() {
|
|||||||
|
|
||||||
check_managed_features() {
|
check_managed_features() {
|
||||||
local PROP_FILE=$1
|
local PROP_FILE=$1
|
||||||
local MANAGED_FEATURES=$(grep_prop ksu_managed_features "$PROP_FILE")
|
local MANAGED_FEATURES=$(grep_prop managedFeatures "$PROP_FILE")
|
||||||
|
|
||||||
[ -z "$MANAGED_FEATURES" ] && return 0
|
[ -z "$MANAGED_FEATURES" ] && return 0
|
||||||
|
|
||||||
|
|||||||
@@ -515,8 +515,8 @@ pub fn list_modules() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Get all managed features from active modules
|
/// Get all managed features from active modules
|
||||||
/// Modules can specify ksu_managed_features in their module.prop
|
/// Modules can specify managedFeatures in their module.prop
|
||||||
/// Format: ksu_managed_features=feature1,feature2,feature3
|
/// Format: managedFeatures=feature1,feature2,feature3
|
||||||
/// Returns: HashMap<ModuleId, Vec<ManagedFeature>>
|
/// Returns: HashMap<ModuleId, Vec<ManagedFeature>>
|
||||||
pub fn get_managed_features() -> Result<HashMap<String, Vec<String>>> {
|
pub fn get_managed_features() -> Result<HashMap<String, Vec<String>>> {
|
||||||
let mut managed_features_map: HashMap<String, Vec<String>> = HashMap::new();
|
let mut managed_features_map: HashMap<String, Vec<String>> = HashMap::new();
|
||||||
@@ -534,7 +534,7 @@ pub fn get_managed_features() -> Result<HashMap<String, Vec<String>>> {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Some(features_str) = prop_map.get("ksu_managed_features") {
|
if let Some(features_str) = prop_map.get("managedFeatures") {
|
||||||
let module_id = prop_map
|
let module_id = prop_map
|
||||||
.get("id")
|
.get("id")
|
||||||
.map(|s| s.to_string())
|
.map(|s| s.to_string())
|
||||||
|
|||||||
Reference in New Issue
Block a user