* feat: aptss 除ssupdate外的操作时候如果检测到存在源文件存在则不再重复获取

* fix: 修复在apt list锁被锁定的时候异常弹出有更新可用
This commit is contained in:
2023-01-03 13:16:24 +08:00
parent c169622806
commit 980e4a17d9
3 changed files with 25 additions and 6 deletions

View File

@@ -47,9 +47,19 @@ fi
# 每日更新星火源文件
curl --progress-bar -o /opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/sources.list.d/sparkstore.list"
sleep 10
updatetext=`aptss ssupdate`
updatetext=`aptss ssupdate 2>&1`
until [ "`echo $updatetext | grep E: `" = "" ];do
echo "更新出现异常状况,等待十五秒"
sleep 15
updatetext=`aptss ssupdate 2>&1`
done
isupdate=`echo ${updatetext: -5}`
if [ "$isupdate" = "date." ] ; then
exit 0