修复无法判断pin部署类型

This commit is contained in:
wangsong 2024-06-04 16:00:00 +08:00
parent 968f614780
commit 2ef9602184
1 changed files with 1 additions and 1 deletions

View File

@ -294,7 +294,7 @@ class DeployBackend(BackendBaseOstree):
old_deployments = sysroot.get_deployments()
for deploys in old_deployments:
# 放hotfix和pin 部署
if deploys.get_unlocked() == OSTree.DeploymentUnlockedState.HOTFIX and deploys.is_pinned():
if deploys.get_unlocked() == OSTree.DeploymentUnlockedState.HOTFIX or deploys.is_pinned():
special_deployment.append(special_deployment)
# 其他升级保存的部署
elif not upgrade_deployment.equal(deploys):