add normal fedora kernels

This commit is contained in:
Ward from fusion-voyager-3 2024-06-24 03:28:22 +03:00
parent c86eca1729
commit a4ae3d6f58
3 changed files with 18 additions and 2 deletions

11
data/db_kernel.json Normal file
View File

@ -0,0 +1,11 @@
{
"latest_kernel_version_deter_pkg": "kernel",
"kernels": [
{
"name": "Default Kernel",
"main_package": "kernel",
"packages": "kernel kernel-devel-matched",
"min_x86_march": "1"
}
]
}

View File

@ -0,0 +1,5 @@
{
"name": "kernel (RPM Default)",
"db_url": "https://raw.githubusercontent.com/CosmicFusion/fedora-kernel-manager/main/data/db_kernel.json",
"init_script": "true"
}

View File

@ -511,7 +511,7 @@ fn create_kernel_badges(
.args(["version", &kernel_version_deter])
.output()
{
Ok(t) => String::from_utf8(t.stdout).unwrap().trim(),
Ok(t) => String::from_utf8(t.stdout).unwrap().trim().to_owned(),
_ => "0.0.0".to_owned(),
};
@ -535,7 +535,7 @@ fn create_kernel_badges(
));
badge_box.append(&create_kernel_badge(
&t!("kernel_badge_latest_version_label").to_string(),
kernel_version,
&kernel_version,
"background-accent-bg",
&kernel_badges_size_group,
&kernel_badges_size_group0,