From 7e67562e19dbcbc29d554164ee31f1abe77c5b88 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Thu, 26 Nov 2020 20:44:42 +1100 Subject: [PATCH] Support EndeavourOS (#565) --- cmd/linux.go | 6 +++++- cmd/linuxdb.yaml | 11 ++++++++++- cmd/system.go | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/cmd/linux.go b/cmd/linux.go index 3354ba4e..4d5b91ca 100644 --- a/cmd/linux.go +++ b/cmd/linux.go @@ -65,6 +65,8 @@ const ( Solus // Ctlos Linux distribution Ctlos + // EndeavourOS linux distribution + EndeavourOS ) // DistroInfo contains all the information relating to a linux distribution @@ -132,7 +134,7 @@ func parseOsRelease(osRelease string) *DistroInfo { case "archlabs": result.Distribution = ArchLabs case "ctlos": - result.Distribution = Ctlos + result.Distribution = Ctlos case "debian": result.Distribution = Debian case "ubuntu": @@ -171,6 +173,8 @@ func parseOsRelease(osRelease string) *DistroInfo { result.Distribution = PopOS case "solus": result.Distribution = Solus + case "endeavouros": + result.Distribution = EndeavourOS default: result.Distribution = Unknown } diff --git a/cmd/linuxdb.yaml b/cmd/linuxdb.yaml index ed314f54..616ccd0f 100644 --- a/cmd/linuxdb.yaml +++ b/cmd/linuxdb.yaml @@ -202,7 +202,16 @@ distributions: name: Ctlos Linux gccversioncommand: *gccdumpversion programs: *archdefaultprograms - libraries: *archdefaultlibraries + libraries: *archdefaultlibraries + endeavouros: + id: endeavouros + releases: + default: + version: default + name: EndeavourOS + gccversioncommand: *gccdumpversion + programs: *archdefaultprograms + libraries: *archdefaultlibraries manjaro: id: manjaro releases: diff --git a/cmd/system.go b/cmd/system.go index 798f1230..ab3c9e5d 100644 --- a/cmd/system.go +++ b/cmd/system.go @@ -276,7 +276,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: + case Arch, ArcoLinux, ArchLabs, Ctlos, Manjaro, ManjaroARM, EndeavourOS: libraryChecker = PacmanInstalled case CentOS, Fedora, Tumbleweed, Leap: libraryChecker = RpmInstalled