sync aptss changes to 4320

This commit is contained in:
2024-10-22 19:49:21 +08:00
parent d24004dcea
commit 3323dce97f
5 changed files with 8 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
source /opt/durapps/spark-store/bin/bashimport/transhell.amber
load_transhell_debug
export DEBIAN_FRONTEND=noninteractive
case $(arch) in
x86_64)
@@ -122,7 +123,7 @@ DEBPATH=$(realpath "$1")
exit "$try_run_ret"
fi
dpkg -i "$DEBPATH" || aptss install -yf
aptss install "$DEBPATH" -yf --reinstall
if [ "$?" = "0" ] && [ "$2" = "--delete-after-install" ]; then
if dpkg -s "$package_name" >/dev/null 2>&1; then