minor fix up
All checks were successful
PikaOS Package Build & Release (amd64-v3) / build (push) Successful in 1m55s

This commit is contained in:
Ward from fusion-voyager-3 2025-01-04 20:41:17 +03:00
parent 182bd66f91
commit 4f757eef46
5 changed files with 17 additions and 10 deletions

View File

@ -1 +1 @@
3 4

2
Cargo.lock generated
View File

@ -1428,7 +1428,7 @@ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
[[package]] [[package]]
name = "pika-kernel-manager" name = "pika-kernel-manager"
version = "0.1.5" version = "0.1.6"
dependencies = [ dependencies = [
"async-channel", "async-channel",
"duct", "duct",

View File

@ -1,11 +1,18 @@
#! /bin/bash #! /bin/bash
if [[ "$1" == "version" ]] if [[ "$1" == "list" ]]
then
apt show kernel-pika 2>&1 | grep -v "does not have a stable" | grep Depends: | head -n1 | cut -f2 -d":" | cut -f1 -d"," | cut -f3 -d"-" | tr -d ' '
elif [[ "$1" == "list" ]]
then then
apt list 2>&1 | cut -f1 -d'/' | grep -v dbg | grep -E "linux-image-.*-pikaos" | cut -f3- -d"-" | tr -d ' ' apt list 2>&1 | cut -f1 -d'/' | grep -v dbg | grep -E "linux-image-.*-pikaos" | cut -f3- -d"-" | tr -d ' '
else elif [[ "$1" == "current_version" ]]
then
dpkg -s kernel-pika 2>&1 | grep -v "does not have a stable" | grep Depends: | head -n1 | cut -f2 -d":" | cut -f1 -d"," | cut -f3 -d"-" | tr -d ' '
elif [[ "$1" == "current_pkgname" ]]
then
dpkg -s kernel-pika 2>&1 | grep Depends: | tr "," "\n" | cut -f2 -d":" | grep linux-image | tr -d ' '
elif [[ "$1" == "version" ]]
then
apt show kernel-pika 2>&1 | grep -v "does not have a stable" | grep Depends: | head -n1 | cut -f2 -d":" | cut -f1 -d"," | cut -f3 -d"-" | tr -d ' '
elif [[ "$1" == "pkgname" ]]
then
apt show kernel-pika 2>&1 | grep Depends: | tr "," "\n" | cut -f2 -d":" | grep linux-image | tr -d ' ' apt show kernel-pika 2>&1 | grep Depends: | tr "," "\n" | cut -f2 -d":" | grep linux-image | tr -d ' '
fi fi

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
pika-kernel-manager (0.1.6-101pika1) pika; urgency=low pika-kernel-manager (0.1.6-101pika2) pika; urgency=low
* Translation Update * Translation Update

View File

@ -225,7 +225,7 @@ 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") let command_get_kernel_pika = Command::new("/usr/lib/pika/kernel-manager/scripts/get_kernel_pika.sh")
.arg("pkgname") .arg("current_pkgname")
.output() .output()
.unwrap(); .unwrap();
let kernel_pika_pkg = String::from_utf8(command_get_kernel_pika.stdout).unwrap(); let kernel_pika_pkg = String::from_utf8(command_get_kernel_pika.stdout).unwrap();