mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-11-04 00:02:21 +08:00
fix: Now only use apt but not dpkg
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
parent
7ad606bbd4
commit
fb01686527
@ -122,8 +122,8 @@ DEBPATH=$(realpath "$1")
|
|||||||
exit "$try_run_ret"
|
exit "$try_run_ret"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dpkg --force-conflicts -i "$DEBPATH"
|
|
||||||
aptss install "$DEBPATH" -yf
|
aptss install "$DEBPATH" -yf --reinstall
|
||||||
|
|
||||||
if [ "$?" = "0" ] && [ "$2" = "--delete-after-install" ]; then
|
if [ "$?" = "0" ] && [ "$2" = "--delete-after-install" ]; then
|
||||||
if dpkg -s "$package_name" >/dev/null 2>&1; then
|
if dpkg -s "$package_name" >/dev/null 2>&1; then
|
||||||
|
|||||||
@ -164,9 +164,8 @@ if [ ! -z "$IS_SHA512SUM_CHECKED" ]; then
|
|||||||
echo -e "${try_run_output}"
|
echo -e "${try_run_output}"
|
||||||
exit "$try_run_ret"
|
exit "$try_run_ret"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dpkg --force-conflicts -i "$DEBPATH"
|
aptss install "$DEBPATH" -yf --reinstall
|
||||||
aptss install "$DEBPATH" -yf
|
|
||||||
|
|
||||||
unlock_file "$DEBPATH"
|
unlock_file "$DEBPATH"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user