fix: 安装速度降低

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

3
debian/changelog vendored
View File

@ -1,6 +1,7 @@
spark-store (4.3.2.2) UNRELEASED; urgency=medium
spark-store (4.3.3) UNRELEASED; urgency=medium
* 修复点击更新需要输入密码的问题
* 修复安装速度下降的问题
-- shenmo <shenmo@spark-app.store> Tue, 24 Sep 2024 11:27:08 +0800

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

View File

@ -166,7 +166,7 @@ if [ ! -z "$IS_SHA512SUM_CHECKED" ]; then
exit "$try_run_ret"
fi
aptss install "$DEBPATH" -yf --reinstall
dpkg -i "$DEBPATH" || aptss install "$DEBPATH" -yf --reinstall --allow-downgrades
unlock_file "$DEBPATH"