fix: 安装速度降低

This commit is contained in:
2024-11-05 15:24:53 +08:00
parent 85823fdc23
commit ce34fc763f
3 changed files with 4 additions and 3 deletions

View File

@@ -123,7 +123,7 @@ DEBPATH=$(realpath "$1")
exit "$try_run_ret"
fi
aptss install "$DEBPATH" -yf --reinstall
dpkg -i "$DEBPATH" || aptss install "$DEBPATH" -yf --reinstall --allow-downgrades
if [ "$?" = "0" ] && [ "$2" = "--delete-after-install" ]; then
if dpkg -s "$package_name" >/dev/null 2>&1; then