mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-13 12:22:05 +08:00
!108 在检测更新时临时降低优先级到100,防止系统中有且版本一致的包被反复来回更新
* changelog更新 * 修复界面中显示的更新检测服务是否启动不正确 * 在检测更新时临时降低优先级到100,防止系统中有且版本一致的包被反复来回更新
This commit is contained in:
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user