Put apt show outside constant check loop

This commit is contained in:
Ward from fusion-voyager-3 2025-01-04 20:04:02 +03:00
parent 3744f5f68c
commit 15d511109e
5 changed files with 15 additions and 8 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "pika-kernel-manager"
version = "0.1.5"
version = "0.1.6"
edition = "2021"

@ -1 +1 @@
Subproject commit f53109e75c2d144fa0cc3502b96d128703e5066f
Subproject commit 9b69c38ee0311827b2fbcf16f66d1d154f16bccb

6
debian/changelog vendored
View File

@ -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
* Translation Update

View File

@ -2,7 +2,7 @@
set -e
VERSION="0.1.5"
VERSION="0.1.6"
source ./pika-build-config.sh

View File

@ -224,16 +224,17 @@ fn add_package_rows(
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 {
let command_installed_status = Command::new("/usr/lib/pika/kernel-manager/scripts/check-pkg.sh")
.arg(&kernel_main_package_clone0)
.output()
.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() {
kernel_status_loop_sender
.send_blocking(2)