From a94a720a68de7bcf51f635fea37f1a378d769164 Mon Sep 17 00:00:00 2001 From: Antonio Date: Mon, 11 Oct 2021 17:16:24 +0200 Subject: [PATCH] add artix linux distro --- cmd/linux.go | 4 ++++ cmd/linuxdb.yaml | 9 +++++++++ cmd/system.go | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/cmd/linux.go b/cmd/linux.go index 81dcd6fc0..8c710a64b 100644 --- a/cmd/linux.go +++ b/cmd/linux.go @@ -71,6 +71,8 @@ const ( Crux // RHEL distribution RHEL + // Artix linux distribution + ArtixLinux ) // DistroInfo contains all the information relating to a linux distribution @@ -183,6 +185,8 @@ func parseOsRelease(osRelease string) *DistroInfo { result.Distribution = EndeavourOS case "crux": result.Distribution = Crux + case "artix": + result.Distribution = ArtixLinux default: result.Distribution = Unknown } diff --git a/cmd/linuxdb.yaml b/cmd/linuxdb.yaml index 04db56c5e..2593d1b3b 100644 --- a/cmd/linuxdb.yaml +++ b/cmd/linuxdb.yaml @@ -213,6 +213,15 @@ distributions: gccversioncommand: *gccdumpversion programs: *archdefaultprograms libraries: *archdefaultlibraries + artix: + id: artix + releases: + default: + version: default + name: Artix Linux + gccversioncommand: *gccdumpversion + programs: *archdefaultprograms + libraries: *archdefaultlibraries ctlos: id: ctlos releases: diff --git a/cmd/system.go b/cmd/system.go index 76ab0b23c..56d17242a 100644 --- a/cmd/system.go +++ b/cmd/system.go @@ -281,7 +281,7 @@ func CheckDependencies(logger *Logger) (bool, error) { switch distroInfo.Distribution { case Ubuntu, Debian, Zorin, Parrot, Linuxmint, Elementary, Kali, Neon, Deepin, Raspbian, PopOS: libraryChecker = DpkgInstalled - case Arch, ArcoLinux, ArchLabs, Ctlos, Manjaro, ManjaroARM, EndeavourOS: + case Arch, ArcoLinux, ArchLabs, Ctlos, Manjaro, ManjaroARM, EndeavourOS, ArtixLinux: libraryChecker = PacmanInstalled case CentOS, Fedora, Tumbleweed, Leap, RHEL: libraryChecker = RpmInstalled