From bbab3c483a8e41ddef9d7b0b5d34250e6feb97c5 Mon Sep 17 00:00:00 2001 From: a Date: Sat, 24 Mar 2018 14:10:26 +0100 Subject: [PATCH] Add Slitaz --- README.md | 1 + set.pl | 1 + src/common.c | 7 +++++++ 3 files changed, 9 insertions(+) diff --git a/README.md b/README.md index c050c88..23dc29a 100644 --- a/README.md +++ b/README.md @@ -366,6 +366,7 @@ Replace **distro** with the following [bases](https://en.wikipedia.org/wiki/List - [x] voidlinux - [x] crux - [x] alpinelinux +- [x] slitaz Cannot list the \*BSD flavours as "distros", so they deserve own options: diff --git a/set.pl b/set.pl index dacd46d..ae84196 100644 --- a/set.pl +++ b/set.pl @@ -95,6 +95,7 @@ sub reflace_single { my $osEntered = uc $ARGV[0]; my @osArr = ( + "SLITAZ", "ARCHLINUX","DEBIAN","ALPINELINUX", "GENTOO","SLACKWARE","CRUX", "RHEL","FRUGALWARE","VOIDLINUX", diff --git a/src/common.c b/src/common.c index bab9b93..e73a76a 100644 --- a/src/common.c +++ b/src/common.c @@ -263,6 +263,13 @@ get_packs(char *str1) { CHECK_POPEN(pkgs_file, "apk info 2> /dev/null | wc -l", &packages); #pragma GCC diagnostic pop +#elif defined(SLITAZ) + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wunused-result" + CHECK_POPEN(pkgs_file, "tazpkg list 2> /dev/null | wc -l", &packages); +#pragma GCC diagnostic pop + #elif defined(FREEBSD) #pragma GCC diagnostic push -- 2.11.0