util: distro: Refactor family and distro code

I hate writing abstraction code like this, but I'm hoping it will be
useful.
This commit is contained in:
James Shubin
2024-10-15 19:45:48 -04:00
parent d403f18b2a
commit d24149518c
8 changed files with 114 additions and 92 deletions

View File

@@ -2,5 +2,5 @@ import "os"
pkg "cowsay" {
state => "installed",
allowunsupported => os.is_debian() ?: true,
allowunsupported => os.is_family_debian() ?: true,
}