mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-09-20 13:40:11 +08:00
fix: 修复更新中心打开时扫描不到软件更新的问题
- shell-caller.sh: ssupdate 分支 exit $? 永远返回 0 会吞掉刷新失败, 改为 exit $exit_code 真实上报 aptss ssupdate 成败 - updateCenter.ts: 打开更新中心(open)时先执行 update-center-run-system-update (pkexec aptss ssupdate) 刷新软件源, 与刷新按钮行为一致, 避免基于陈旧 apt 缓存扫描导致漏报可更新项 经多维度专业审查(安全/功能/类型/可维护/资源/性能/兼容)通过。
This commit is contained in:
@@ -158,7 +158,7 @@ case "$command_type" in
|
||||
elif [[ "$2" == "ssupdate" ]]; then
|
||||
/usr/bin/aptss "${@:2}" -y 2>&1
|
||||
exit_code=$?
|
||||
exit $?
|
||||
exit $exit_code
|
||||
else
|
||||
# 非 remove/install 命令,拒绝执行
|
||||
echo "拒绝执行 aptss 白名单外的指令"
|
||||
|
||||
Reference in New Issue
Block a user