Add detection of Debian distribution

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
This commit is contained in:
Arnaud Meukam 2025-08-28 12:35:29 +02:00
parent ddc21c750f
commit b336829add
No known key found for this signature in database
GPG Key ID: E127D6541A5EBDDB
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ func (d *Distribution) IsDebianFamily() bool {
return d.packageFormat == "deb"
}
// IsDebian returns true if this distribution is Debian
func (d *Distribution) IsDebian() bool {
return d.project == "debian"
}
// IsUbuntu returns true if this distribution is Ubuntu (but not debian)
func (d *Distribution) IsUbuntu() bool {
return d.project == "ubuntu"