fix: abandon dpkg

Merge pull request  from shenmo/auto-4915358-Reason-22474d88-1
This commit is contained in:
shenmo 2024-10-20 18:45:27 +00:00 committed by Gitee
commit 44d04c5bcb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 4 deletions

@ -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

@ -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"