Skip to content

Commit

Permalink
Add feat for Debian and Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
ccmywish committed Oct 30, 2024
1 parent 13e3c8a commit 3514664
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
23 changes: 21 additions & 2 deletions src/recipe/os/APT/Debian.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* | Heng Guo <[email protected]>
* Contributors : Nil Null <[email protected]>
* Created On : <2023-09-02>
* Last Modified : <2024-08-16>
* Last Modified : <2024-10-31>
* ------------------------------------------------------------*/

/**
Expand Down Expand Up @@ -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);

22 changes: 20 additions & 2 deletions src/recipe/os/APT/Ubuntu.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* | Heng Guo <[email protected]>
* Contributors : Nil Null <[email protected]>
* Created On : <2023-08-30>
* Last Modified : <2024-08-16>
* Last Modified : <2024-10-31>
* ------------------------------------------------------------*/

/**
Expand Down Expand Up @@ -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);

0 comments on commit 3514664

Please sign in to comment.