From fb01686527ef2370b8a261fe7563b69627515544 Mon Sep 17 00:00:00 2001 From: shenmo Date: Sun, 20 Oct 2024 18:41:27 +0000 Subject: [PATCH] fix: Now only use apt but not dpkg Signed-off-by: shenmo --- 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"