aops-apollo/0003-update-condition-under-which-hotpatches-can-be-applied.patch
rabbitali a9646ac5d7 更新热补丁是否可应用的判断条件
(cherry picked from commit 53f25c96819db6d1ed0baee8178b50bd8e06ed6f)
2023-06-30 20:52:46 +08:00

29 lines
1.1 KiB
Diff

From 30a0f76f2150f27db79fedde3af4926b36954066 Mon Sep 17 00:00:00 2001
From: rabbitali <shusheng.wen@outlook.com>
Date: Fri, 30 Jun 2023 19:07:55 +0800
Subject: [PATCH] Update the condition under which hot patches can be applied
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
hotpatch/hotpatch_updateinfo.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hotpatch/hotpatch_updateinfo.py b/hotpatch/hotpatch_updateinfo.py
index 7dc92ce..3963867 100644
--- a/hotpatch/hotpatch_updateinfo.py
+++ b/hotpatch/hotpatch_updateinfo.py
@@ -212,7 +212,7 @@ class HotpatchUpdateInfo(object):
hp_vere = '%s-%s' % (src_pkg_version, src_pkg_release)
if hp_vere != inst_pkg_vere:
continue
- elif self._get_hotpatch_status_in_syscare(hotpatch) == 'ACTIVED':
+ elif self._get_hotpatch_status_in_syscare(hotpatch) in ('ACTIVED', "ACCEPTED"):
hotpatch.state = self.INSTALLED
else:
hotpatch.state = self.INSTALLABLE
--
2.33.0