mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
feat(aptssupdater): 添加包安装状态检查方法并优化更新合并逻辑
添加 isPackageInstalledInAptss 和 isPackageInstalledInApm 方法检查包安装状态 优化 mergeUpdateInfo 逻辑,根据包安装状态判断是否为迁移场景
This commit is contained in:
@@ -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环境中
|
||||
|
||||
|
||||
Reference in New Issue
Block a user