!297 fix: no dpkg

Merge pull request !297 from shenmo/auto-4915358-Flamescion-8343e2b9-1
This commit is contained in:
2024-10-20 18:44:22 +00:00
committed by Gitee
2 changed files with 4 additions and 5 deletions

View File

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

View File

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