Use dpkg status
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m14s
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 2m14s
This commit is contained in:
parent
b464a7b24f
commit
9916e48906
2
.github/release-nest-v3
vendored
2
.github/release-nest-v3
vendored
@ -1 +1 @@
|
|||||||
5
|
6
|
@ -47,5 +47,6 @@
|
|||||||
"sched_ext_cmd_status_dialog_body_success": "SCX has been set to",
|
"sched_ext_cmd_status_dialog_body_success": "SCX has been set to",
|
||||||
"sched_ext_cmd_status_dialog_heading_failed": "Failed!",
|
"sched_ext_cmd_status_dialog_heading_failed": "Failed!",
|
||||||
"sched_ext_cmd_status_dialog_body_failed": "SCX couldn't be has been set to",
|
"sched_ext_cmd_status_dialog_body_failed": "SCX couldn't be has been set to",
|
||||||
"sched_ext_null_checkbutton_label": "No Scheduler selected"
|
"sched_ext_null_checkbutton_label": "No Scheduler selected",
|
||||||
|
"installed": "Installed!"
|
||||||
}
|
}
|
10
data/scripts/check-pkg.sh
Executable file
10
data/scripts/check-pkg.sh
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#! /usr/bin/bash
|
||||||
|
export LANG=C
|
||||||
|
|
||||||
|
package=$1
|
||||||
|
if dpkg-query -W -f='${Status}' $package 2>/dev/null | grep -q "install ok installed"
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
else
|
||||||
|
exit 1
|
||||||
|
fi
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
|||||||
pika-kernel-manager (0.1.3-101pika4) pika; urgency=low
|
pika-kernel-manager (0.1.3-101pika5) pika; urgency=low
|
||||||
|
|
||||||
* Initial Release
|
* Initial Release
|
||||||
|
|
||||||
|
@ -223,8 +223,8 @@ fn add_package_rows(
|
|||||||
let kernel_main_package_clone0 = kernel_main_package.clone();
|
let kernel_main_package_clone0 = kernel_main_package.clone();
|
||||||
|
|
||||||
std::thread::spawn(move || loop {
|
std::thread::spawn(move || loop {
|
||||||
let command_installed_status = Command::new("dpkg")
|
let command_installed_status = Command::new("/usr/lib/pika/kernel-manager/scripts/check-pkg.sh")
|
||||||
.args(["-s", &kernel_main_package_clone0])
|
.arg(&kernel_main_package_clone0)
|
||||||
.output()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let command_get_kernel_pika = Command::new("/usr/lib/pika/kernel-manager/scripts/get_kernel_pika.sh")
|
let command_get_kernel_pika = Command::new("/usr/lib/pika/kernel-manager/scripts/get_kernel_pika.sh")
|
||||||
|
Loading…
Reference in New Issue
Block a user