Skip to content

Commit 3514664

Browse files
committed
Add feat for Debian and Ubuntu
1 parent 13e3c8a commit 3514664

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

src/recipe/os/APT/Debian.c

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* | Heng Guo <[email protected]>
66
* Contributors : Nil Null <[email protected]>
77
* Created On : <2023-09-02>
8-
* Last Modified : <2024-08-16>
8+
* Last Modified : <2024-10-31>
99
* ------------------------------------------------------------*/
1010

1111
/**
@@ -106,4 +106,23 @@ os_debian_setsrc (char *option)
106106
chsrc_conclude (&source, SetsrcType_Auto);
107107
}
108108

109-
def_target(os_debian);
109+
110+
FeatInfo
111+
os_debian_feat (char *option)
112+
{
113+
FeatInfo f = {0};
114+
115+
f.can_get = true;
116+
f.can_reset = false;
117+
118+
f.cap_locally = CanNot;
119+
f.locally = NULL;
120+
f.can_english = false;
121+
f.can_user_define = true;
122+
123+
f.note = NULL;
124+
return f;
125+
}
126+
127+
def_target_gsf(os_debian);
128+

src/recipe/os/APT/Ubuntu.c

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* | Heng Guo <[email protected]>
66
* Contributors : Nil Null <[email protected]>
77
* Created On : <2023-08-30>
8-
* Last Modified : <2024-08-16>
8+
* Last Modified : <2024-10-31>
99
* ------------------------------------------------------------*/
1010

1111
/**
@@ -115,4 +115,22 @@ os_ubuntu_setsrc (char *option)
115115
chsrc_conclude (&source, SetsrcType_Auto);
116116
}
117117

118-
def_target(os_ubuntu);
118+
119+
FeatInfo
120+
os_ubuntu_feat (char *option)
121+
{
122+
FeatInfo f = {0};
123+
124+
f.can_get = true;
125+
f.can_reset = false;
126+
127+
f.cap_locally = CanNot;
128+
f.locally = NULL;
129+
f.can_english = false;
130+
f.can_user_define = true;
131+
132+
f.note = NULL;
133+
return f;
134+
}
135+
136+
def_target_gsf(os_ubuntu);

0 commit comments

Comments
 (0)