diff --git a/debian/changelog b/debian/changelog index 406e7a6..8a4fb95 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,8 @@ spark-store (4.2.3.2~Reason7) stable; urgency=medium * ssinstall发现无法验证时尝试update而不是ssupdate * 启动每日aptss update - * ssinstall在发现无法安装后 + * ssinstall在发现无法安装后尝试先进行下aptss update + * 修复:安装商店后首次启动无法安装任何软件 -- shenmo diff --git a/tool/ssinstall b/tool/ssinstall index 2b0ed54..0449193 100755 --- a/tool/ssinstall +++ b/tool/ssinstall @@ -95,14 +95,28 @@ echo -------------------------------------------------------------------------- try_run_output=$(aptss --dry-run install $DEBPATH) try_run_ret="$?" - if [ "$try_run_ret" -ne 0 ] +if [ "$try_run_ret" -ne 0 ] then echo "Package manager quit with exit code.Here is the log" echo "包管理器以错误代码退出.日志如下" echo echo -e "${try_run_output}" - exit "$try_run_ret" - fi + echo "Will try after run aptss update" + echo "将会在aptss update之后再次尝试" + aptss update + echo ---------------------------------------------------------------------------- + try_run_output=$(aptss --dry-run install $DEBPATH) + try_run_ret="$?" + if [ "$try_run_ret" -ne 0 ] + then + echo "Package manager quit with exit code.Here is the log" + echo "包管理器以错误代码退出.日志如下" + echo + echo -e "${try_run_output}" + exit "$try_run_ret" + fi + +fi dpkg -i "$DEBPATH" || aptss install -yf