apt-fast相关改动:支持显示报错等

* feat: aptss支持显示报错

  * feat: aptss部分提示汉化

  * fix: 修复部分情况下ssinstall实际未安装但是错误显示
This commit is contained in:
2023-01-06 23:30:05 +08:00
parent 539a21ccec
commit 69b7cbe472
5 changed files with 14 additions and 4 deletions

View File

@@ -326,7 +326,9 @@ get_uris(){
uris_full_ret="$?"
if [ "$uris_full_ret" -ne 0 ]
then
msg "Package manager quit with exit code." "warning"
msg "Package manager quit with exit code.Here is the log" "warning"
msg "包管理器以错误代码退出.日志如下" "warning"
msg "${uris_full}"
exit "$uris_full_ret"
fi
while read -r pkg_uri_info

View File

@@ -28,6 +28,6 @@ fi
DEBPATH=`realpath $1`
echo ----------------------------------------------------------------------------------
dpkg -i "$DEBPATH" || aptss install -yf
aptss install -yf --reinstall "$DEBPATH"

View File

@@ -78,7 +78,7 @@ if [ ! -z "$IS_MD5SUM_CHECKD" ];then
echo "校验成功,开始安装"
echo ----------------------------------------------------------------------------------
dpkg -i "$DEBPATH" || aptss install -yf
aptss install -yf --reinstall "$DEBPATH"
else