Skip to content

Commit 5376ae9

Browse files
authored
Merge pull request #5849 from montjoie/gentoo-os_name_human
Handle sys.os_name_human on gentoo
2 parents 7b0a3fe + 2fa7d22 commit 5376ae9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libenv/sysinfo.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3685,6 +3685,12 @@ static void SysOSNameHuman(EvalContext *ctx)
36853685
"Alpine", CF_DATA_TYPE_STRING,
36863686
"source=agent,derived-from=alpine");
36873687
}
3688+
else if (EvalContextClassGet(ctx, NULL, "gentoo") != NULL)
3689+
{
3690+
EvalContextVariablePutSpecial(ctx, SPECIAL_SCOPE_SYS, lval,
3691+
"Gentoo", CF_DATA_TYPE_STRING,
3692+
"source=agent,derived-from=gentoo");
3693+
}
36883694
else
36893695
{
36903696
EvalContextVariablePutSpecial(ctx, SPECIAL_SCOPE_SYS, lval,

0 commit comments

Comments
 (0)