From 0b4733c08c7bb9f65a322276a027e5bcb4311c42 Mon Sep 17 00:00:00 2001 From: shenmo Date: Mon, 21 Oct 2024 02:41:51 +0800 Subject: [PATCH] fix: no dpkg --- tool/ssaudit | 4 ++-- tool/ssinstall | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/tool/ssaudit b/tool/ssaudit index 0c529ea..682e545 100755 --- a/tool/ssaudit +++ b/tool/ssaudit @@ -122,8 +122,8 @@ DEBPATH=$(realpath "$1") exit "$try_run_ret" fi - dpkg --force-conflicts -i "$DEBPATH" - aptss install "$DEBPATH" -yf + + aptss install "$DEBPATH" -yf --reinstall if [ "$?" = "0" ] && [ "$2" = "--delete-after-install" ]; then if dpkg -s "$package_name" >/dev/null 2>&1; then diff --git a/tool/ssinstall b/tool/ssinstall index 5ca76da..6ac1470 100755 --- a/tool/ssinstall +++ b/tool/ssinstall @@ -164,9 +164,8 @@ if [ ! -z "$IS_SHA512SUM_CHECKED" ]; then echo -e "${try_run_output}" exit "$try_run_ret" fi - - dpkg --force-conflicts -i "$DEBPATH" - aptss install "$DEBPATH" -yf + + aptss install "$DEBPATH" -yf --reinstall unlock_file "$DEBPATH"