OSDN Git Service

Add two more distros
authora <a@b.c>
Mon, 26 Mar 2018 12:02:51 +0000 (14:02 +0200)
committera <a@b.c>
Mon, 26 Mar 2018 12:02:51 +0000 (14:02 +0200)
README.md
set.pl
src/common.c

index 7c1bdd2..34a29c4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -371,6 +371,8 @@ Replace **distro** with the following [bases](https://en.wikipedia.org/wiki/List
 - [x] tinycorelinux
 - [x] nixos
 - [x] paldo
+- [x] dragora
+- [x] guixsd
 
 Cannot list the \*BSD flavours as "distros", so they deserve own options:
 
diff --git a/set.pl b/set.pl
index 6e86529..c06e1ae 100644 (file)
--- a/set.pl
+++ b/set.pl
@@ -95,7 +95,7 @@ sub reflace_single {
 
   my $osEntered = uc $ARGV[0];
   my @osArr = (
-    "PALDO",
+    "PALDO","DRAGORA","GUIXSD",
     "SLITAZ","TINYCORELINUX","NIXOS",
     "ARCHLINUX","DEBIAN","ALPINELINUX",
     "GENTOO","SLACKWARE","CRUX",
index da420a8..f0ad295 100644 (file)
@@ -228,6 +228,12 @@ get_packs(char *str1) {
 #elif defined(GENTOO)
   packages = glob_packages("/var/db/pkg/*/*");
 
+#elif defined(DRAGORA)
+  packages = glob_packages("/var/db/pkg/*");
+
+#elif defined(GUIXSD)
+  packages = glob_packages("/guix/store/*");
+
 #elif defined(RHEL)
 
 #pragma GCC diagnostic push