From e7d15f903db65a5d36e75535017a9ee450e4cd2c Mon Sep 17 00:00:00 2001 From: shenmo <jifengshenmo@outlook.com> Date: Mon, 21 Oct 2024 02:45:13 +0800 Subject: [PATCH] fix: abandon dpkg --- tool/ssaudit | 3 +-- tool/ssinstall | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tool/ssaudit b/tool/ssaudit index 0c529ea..733e08d 100755 --- a/tool/ssaudit +++ b/tool/ssaudit @@ -122,8 +122,7 @@ 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..df21047 100755 --- a/tool/ssinstall +++ b/tool/ssinstall @@ -165,8 +165,7 @@ if [ ! -z "$IS_SHA512SUM_CHECKED" ]; then exit "$try_run_ret" fi - dpkg --force-conflicts -i "$DEBPATH" - aptss install "$DEBPATH" -yf + aptss install "$DEBPATH" -yf --reinstall unlock_file "$DEBPATH"