更新patch0005

(cherry picked from commit 78d1706c42522f68f4c15d3be35a216a9a417d00)
This commit is contained in:
rabbitali 2023-06-30 20:50:12 +08:00 committed by openeuler-sync-bot
parent 12fa340d02
commit b6bb02c514

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