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

View File

@@ -2,7 +2,9 @@
source /opt/durapps/spark-store/bin/bashimport/transhell.amber
load_transhell_debug
export DEBIAN_FRONTEND=noninteractive
trap 'unlock_file $DEBPATH' EXIT
case $(arch) in
x86_64)
STORE_URL="store"
@@ -164,7 +166,7 @@ if [ ! -z "$IS_SHA512SUM_CHECKED" ]; then
exit "$try_run_ret"
fi
dpkg -i "$DEBPATH" || aptss install -yf
aptss install "$DEBPATH" -yf --reinstall
unlock_file "$DEBPATH"

View File

@@ -54,6 +54,7 @@ unset desktop_file_path
}
function scan_desktop_file(){
unset desktop_file_path
local result=""

View File

@@ -1,6 +1,6 @@
#!/bin/bash
export LANGUAGE=en_US
export DEBIAN_FRONTEND=noninteractive
case $1 in
ssupdate)
if [ "$(id -u)" != "0" ] ; then

View File

@@ -7,7 +7,6 @@ trap "rm -f /tmp/spark-store/upgradeStatus.txt" EXIT
source /opt/durapps/spark-store/bin/bashimport/transhell.amber
load_transhell_debug
function get_name_from_desktop_file() {
local app_name_in_desktop
local name_orig