!49 [sync] PR-47: 更新热补丁状态判断条件

From: @openeuler-sync-bot 
Reviewed-by: @Lostwayzxc 
Signed-off-by: @Lostwayzxc
This commit is contained in:
openeuler-ci-bot 2023-06-30 13:11:19 +00:00 committed by Gitee
commit c4f5459da4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -29,7 +29,7 @@ index 8547abe..cfecb60 100644
- return "" - return ""
+ for hotpatch_info in [line for line in hotpatch_list_output.split(os.linesep) if line.startswith("CVE")]: + for hotpatch_info in [line for line in hotpatch_list_output.split(os.linesep) if line.startswith("CVE")]:
+ _, hot_pkg, status = hotpatch_info.strip().split() + _, hot_pkg, status = hotpatch_info.strip().split()
+ if status == "ACTIVED": + if status in ("ACTIVED", "ACCEPTED"):
+ return hot_pkg + return hot_pkg
+ return None + return None