!108 在检测更新时临时降低优先级到100,防止系统中有且版本一致的包被反复来回更新

* changelog更新
* 修复界面中显示的更新检测服务是否启动不正确
* 在检测更新时临时降低优先级到100,防止系统中有且版本一致的包被反复来回更新
This commit is contained in:
2022-08-29 17:58:39 +00:00
parent 932e754b88
commit d3987a20ec
3 changed files with 18 additions and 9 deletions

View File

@@ -48,11 +48,18 @@ 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"
# 每日更新星火源文件
mkdir -p /etc/apt/preferences.d
touch /etc/apt/preferences.d/sparkstore
cat << EOF >/etc/apt/preferences.d/sparkstore
Package: *
Pin: origin *.deepinos.org.cn
Pin-Priority: 100
EOF
updatetext=`aptss ssupdate`
mkdir -p /tmp/spark-store-updatenum/
rm /etc/apt/preferences.d/sparkstore
isupdate=`echo ${updatetext: -5}`