Put apt show outside constant check loop
This commit is contained in:
parent
3744f5f68c
commit
15d511109e
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "pika-kernel-manager"
|
name = "pika-kernel-manager"
|
||||||
version = "0.1.5"
|
version = "0.1.6"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit f53109e75c2d144fa0cc3502b96d128703e5066f
|
Subproject commit 9b69c38ee0311827b2fbcf16f66d1d154f16bccb
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
pika-kernel-manager (0.1.6-101pika1) pika; urgency=low
|
||||||
|
|
||||||
|
* Translation Update
|
||||||
|
|
||||||
|
-- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200
|
||||||
|
|
||||||
pika-kernel-manager (0.1.5-101pika6) pika; urgency=low
|
pika-kernel-manager (0.1.5-101pika6) pika; urgency=low
|
||||||
|
|
||||||
* Translation Update
|
* Translation Update
|
||||||
|
2
main.sh
2
main.sh
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
VERSION="0.1.5"
|
VERSION="0.1.6"
|
||||||
|
|
||||||
source ./pika-build-config.sh
|
source ./pika-build-config.sh
|
||||||
|
|
||||||
|
@ -224,16 +224,17 @@ fn add_package_rows(
|
|||||||
|
|
||||||
let kernel_main_package_clone0 = kernel_main_package.clone();
|
let kernel_main_package_clone0 = kernel_main_package.clone();
|
||||||
|
|
||||||
|
let command_get_kernel_pika = Command::new("/usr/lib/pika/kernel-manager/scripts/get_kernel_pika.sh")
|
||||||
|
.arg("pkgname")
|
||||||
|
.output()
|
||||||
|
.unwrap();
|
||||||
|
let kernel_pika_pkg = String::from_utf8(command_get_kernel_pika.stdout).unwrap();
|
||||||
|
|
||||||
std::thread::spawn(move || loop {
|
std::thread::spawn(move || loop {
|
||||||
let command_installed_status = Command::new("/usr/lib/pika/kernel-manager/scripts/check-pkg.sh")
|
let command_installed_status = Command::new("/usr/lib/pika/kernel-manager/scripts/check-pkg.sh")
|
||||||
.arg(&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")
|
|
||||||
.arg("pkgname")
|
|
||||||
.output()
|
|
||||||
.unwrap();
|
|
||||||
let kernel_pika_pkg = String::from_utf8(command_get_kernel_pika.stdout).unwrap();
|
|
||||||
if kernel_main_package_clone0.trim() == kernel_pika_pkg.trim() && command_installed_status.status.success() {
|
if kernel_main_package_clone0.trim() == kernel_pika_pkg.trim() && command_installed_status.status.success() {
|
||||||
kernel_status_loop_sender
|
kernel_status_loop_sender
|
||||||
.send_blocking(2)
|
.send_blocking(2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user