From 3514664ae01983adea38dc04ca060e8bdf9d713a Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Thu, 31 Oct 2024 07:20:24 +0800 Subject: [PATCH] Add feat for `Debian` and `Ubuntu` --- src/recipe/os/APT/Debian.c | 23 +++++++++++++++++++++-- src/recipe/os/APT/Ubuntu.c | 22 ++++++++++++++++++++-- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/src/recipe/os/APT/Debian.c b/src/recipe/os/APT/Debian.c index 1e7d64f..d05fec7 100644 --- a/src/recipe/os/APT/Debian.c +++ b/src/recipe/os/APT/Debian.c @@ -5,7 +5,7 @@ * | Heng Guo <2085471348@qq.com> * Contributors : Nil Null * Created On : <2023-09-02> - * Last Modified : <2024-08-16> + * Last Modified : <2024-10-31> * ------------------------------------------------------------*/ /** @@ -106,4 +106,23 @@ os_debian_setsrc (char *option) chsrc_conclude (&source, SetsrcType_Auto); } -def_target(os_debian); + +FeatInfo +os_debian_feat (char *option) +{ + FeatInfo f = {0}; + + f.can_get = true; + f.can_reset = false; + + f.cap_locally = CanNot; + f.locally = NULL; + f.can_english = false; + f.can_user_define = true; + + f.note = NULL; + return f; +} + +def_target_gsf(os_debian); + diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index 7789b07..5b8cacd 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -5,7 +5,7 @@ * | Heng Guo <2085471348@qq.com> * Contributors : Nil Null * Created On : <2023-08-30> - * Last Modified : <2024-08-16> + * Last Modified : <2024-10-31> * ------------------------------------------------------------*/ /** @@ -115,4 +115,22 @@ os_ubuntu_setsrc (char *option) chsrc_conclude (&source, SetsrcType_Auto); } -def_target(os_ubuntu); + +FeatInfo +os_ubuntu_feat (char *option) +{ + FeatInfo f = {0}; + + f.can_get = true; + f.can_reset = false; + + f.cap_locally = CanNot; + f.locally = NULL; + f.can_english = false; + f.can_user_define = true; + + f.note = NULL; + return f; +} + +def_target_gsf(os_ubuntu);