attempt 0: fixing json

This commit is contained in:
Ward from fusion-voyager-3 2024-06-19 21:59:23 +03:00
parent 975d165228
commit 62505286b2
2 changed files with 6 additions and 8 deletions

View File

@ -5,13 +5,13 @@
"name": "CachyOS Default Kernel", "name": "CachyOS Default Kernel",
"package": "kernel-cachyos", "package": "kernel-cachyos",
"description": "CachyOS Kernel with default scheduler.", "description": "CachyOS Kernel with default scheduler.",
"min_x86_march": 3 "min_x86_march": "3"
}, },
{ {
"name": "CachyOS LTS Kernel", "name": "CachyOS LTS Kernel",
"package": "kernel-cachyos-lts", "package": "kernel-cachyos-lts",
"description": "CachyOS Long Term Support Kernel.", "description": "CachyOS Long Term Support Kernel.",
"min_x86_march": 2 "min_x86_march": "2"
} }
] ]
} }

View File

@ -154,11 +154,10 @@ fn add_package_rows(
.to_owned() .to_owned()
.unwrap() .unwrap()
.to_string(); .to_string();
//let kernel_min_x86_march = kernel["min_x86_march"] let kernel_min_x86_march = kernel["min_x86_march"]
// .as_str() .as_u64()
// .to_owned() .to_owned()
// .unwrap() .unwrap()
// .to_string();
let kernel_package_version = match Command::new("/usr/lib/fedora-kernel-manager/scripts/get_version.sh") let kernel_package_version = match Command::new("/usr/lib/fedora-kernel-manager/scripts/get_version.sh")
.args([&kernel_package]) .args([&kernel_package])
.output() { .output() {
@ -384,7 +383,6 @@ fn add_package_rows(
})); }));
// //
//if kernel_needs_v3 = false || kernel_needs_v3 = true && cpu_feature_level = "x86-64-v3" //if kernel_needs_v3 = false || kernel_needs_v3 = true && cpu_feature_level = "x86-64-v3"
println!("{}", cpu_feature_level);
boxedlist.append(&kernel_expander_row); boxedlist.append(&kernel_expander_row);
} }
}; };