attempt 0: fixing json
This commit is contained in:
parent
975d165228
commit
62505286b2
@ -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"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user