From 721e6580c95447e3fa06cc0e57fb1fb79b08ff57 Mon Sep 17 00:00:00 2001 From: shenmo Date: Sat, 7 Jan 2023 22:24:22 +0800 Subject: [PATCH] =?UTF-8?q?aptss=E4=BF=AE=E5=A4=8D=E4=B8=80=E7=9B=B4?= =?UTF-8?q?=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/changelog | 2 +- tool/aptss | 19 ++++++++++++++++--- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 38d4720..1b4f5ff 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,7 +5,7 @@ spark-store (4.2~test2) stable; urgency=medium * 调整: aptss在进行任何操作前均检测是否存在Packages文件 * 调整: 修改apt-fast源代码以指定conf位置为/tmp/apt-fast,这部分不再使用bwrap模拟 * 新增: aptss检测Package文件支持分目录(目前指定为store) - + * 修复: aptss ssupdates -- shenmo Fri, 30 Jan 2022 00:00:00 +0800 spark-store (4.2~test1) stable; urgency=medium diff --git a/tool/aptss b/tool/aptss index d877293..9a4b257 100755 --- a/tool/aptss +++ b/tool/aptss @@ -1,6 +1,6 @@ #!/bin/bash - +SS_APT_FAST="/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast" if [ ! -e "/tmp/aptss-conf/apt-fast.conf" ];then ###刷新apt-fast配置 @@ -16,10 +16,23 @@ fi if [ ! -e "/var/lib/apt/lists/d.store.deepinos.org.cn_Packages" ] && [ ! -e "/var/lib/apt/lists/d.store.deepinos.org.cn_store_Packages" ];then echo "接收星火仓库软件信息中..." -aptss ssupdate + +mkdir -p /tmp/aptss-conf/ +echo "从服务器获取配置和镜像列表..." +echo "Getting server and mirror lists..." +echo +curl --silent -o /tmp/aptss-conf/apt-fast.conf "https://gitee.com/deepin-community-store/repo_auto_update_script/raw/master/mirror-list-for-apt-fast/apt-fast.conf" +chmod -R 755 /tmp/aptss-conf + +sudo curl --silent -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" +sudo bwrap --dev-bind / / --bind '/opt/durapps/spark-store/bin/apt-fast-conf/sources.list.d/sparkstore.list' /etc/apt/sources.list.d/sparkstore.list apt update -o Dir::Etc::sourcelist="sources.list.d/sparkstore.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" + +#只更新星火源 + + fi -SS_APT_FAST="/opt/durapps/spark-store/bin/apt-fast/ss-apt-fast" +