feat(aptssupdater): 添加包安装状态检查方法并优化更新合并逻辑

添加 isPackageInstalledInAptss 和 isPackageInstalledInApm 方法检查包安装状态
优化 mergeUpdateInfo 逻辑,根据包安装状态判断是否为迁移场景
This commit is contained in:
2026-04-05 10:57:22 +08:00
parent 1becfbc9be
commit 462cdc38bf
3 changed files with 45 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ readonly ACE_ENVIRONMENTS=(
"deepin23-run:amber-ce-deepin23"
"sid-run:amber-ce-sid"
)
dpkg -s '$1' 2>/dev/null | grep -q 'Status: install ok installed' > /dev/null 2>&1
dpkg -s "$1" 2>/dev/null | grep -q 'Status: install ok installed' > /dev/null 2>&1
RET="$?"
if [[ "$RET" != "0" ]] && [[ "$IS_ACE_ENV" == "" ]];then ## 如果未在ACE环境中