31 lines
1.4 KiB
Diff
31 lines
1.4 KiB
Diff
From 1c70edca6667730867cdd1e5691885ebae9c04bd Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=E5=AE=81=E5=AE=87?= <405888464@qq.com>
|
|
Date: Thu, 15 Aug 2024 07:33:24 +0000
|
|
Subject: [PATCH] syscared: Add PACTCH_CHECK action when status change from
|
|
Deactived to Actived
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: 宁宇 <405888464@qq.com>
|
|
---
|
|
syscared/src/patch/manager.rs | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/syscared/src/patch/manager.rs b/syscared/src/patch/manager.rs
|
|
index d156e4a..3a724db 100644
|
|
--- a/syscared/src/patch/manager.rs
|
|
+++ b/syscared/src/patch/manager.rs
|
|
@@ -54,7 +54,7 @@ lazy_static! {
|
|
(PatchStatus::NotApplied, PatchStatus::Actived) => vec![PATCH_CHECK, PATCH_APPLY, PATCH_ACTIVE],
|
|
(PatchStatus::NotApplied, PatchStatus::Accepted) => vec![PATCH_CHECK, PATCH_APPLY, PATCH_ACTIVE, PATCH_ACCEPT],
|
|
(PatchStatus::Deactived, PatchStatus::NotApplied) => vec![PATCH_REMOVE],
|
|
- (PatchStatus::Deactived, PatchStatus::Actived) => vec![PATCH_ACTIVE],
|
|
+ (PatchStatus::Deactived, PatchStatus::Actived) => vec![PATCH_CHECK, PATCH_ACTIVE],
|
|
(PatchStatus::Deactived, PatchStatus::Accepted) => vec![PATCH_ACTIVE, PATCH_ACCEPT],
|
|
(PatchStatus::Actived, PatchStatus::NotApplied) => vec![PATCH_DEACTIVE, PATCH_REMOVE],
|
|
(PatchStatus::Actived, PatchStatus::Deactived) => vec![PATCH_DEACTIVE],
|
|
--
|
|
2.34.1
|
|
|