Add paludis (exherbo) package count

This commit is contained in:
Tom Briden
2023-07-20 16:43:29 +01:00
committed by Carter Li
parent d33ef3173d
commit 250d3c349e
6 changed files with 8 additions and 4 deletions
+1
View File
@@ -20,6 +20,7 @@ typedef struct FFPackagesResult
uint32_t nixSystem;
uint32_t nixUser;
uint32_t pacman;
uint32_t paludis;
uint32_t pkg;
uint32_t pkgtool;
uint32_t port;
+1
View File
@@ -276,6 +276,7 @@ static void getPackageCounts(FFstrbuf* baseDir, FFPackagesResult* packageCounts)
packageCounts->xbps += getXBPS(baseDir, "/var/db/xbps");
packageCounts->brewCask += getNumElements(baseDir, "/home/linuxbrew/.linuxbrew/Caskroom", DT_DIR);
packageCounts->brew += getNumElements(baseDir, "/home/linuxbrew/.linuxbrew/Cellar", DT_DIR);
packageCounts->paludis += countFilesRecursive(baseDir, "/var/db/paludis/repositories", "environment.bz2");
}
static void getPackageCountsRegular(FFstrbuf* baseDir, FFPackagesResult* packageCounts)
+3 -2
View File
@@ -141,7 +141,7 @@ static inline void printCommandHelp(const char* command)
}
else if(ffStrEqualsIgnCase(command, "packages-format"))
{
constructAndPrintCommandHelpFormat("packages", "{2} (pacman){?3}[{3}]{?}, {4} (dpkg), {5} (rpm), {6} (emerge), {7} (eopkg), {8} (xbps), {9} (nix-system), {10} (nix-user), {11} (nix-default), {12} (apk), {13} (pkg), {14} (flatpak-system), {15} (flatpack-user), {16} (snap), {17} (brew), {18} (brew-cask), {19} (port), {20} (scoop), {21} (choco), {22} (pkgtool)", 22,
constructAndPrintCommandHelpFormat("packages", "{2} (pacman){?3}[{3}]{?}, {4} (dpkg), {5} (rpm), {6} (emerge), {7} (eopkg), {8} (xbps), {9} (nix-system), {10} (nix-user), {11} (nix-default), {12} (apk), {13} (pkg), {14} (flatpak-system), {15} (flatpack-user), {16} (snap), {17} (brew), {18} (brew-cask), {19} (port), {20} (scoop), {21} (choco), {22} (pkgtool), {23} (paludis)", 23,
"Number of all packages",
"Number of pacman packages",
"Pacman branch on manjaro",
@@ -163,7 +163,8 @@ static inline void printCommandHelp(const char* command)
"Number of macports packages",
"Number of scoop packages",
"Number of choco packages",
"Number of pkgtool packages"
"Number of pkgtool packages",
"Number of paludis packages"
);
}
else if(ffStrEqualsIgnCase(command, "shell-format"))
+1
View File
@@ -62,6 +62,7 @@ void ffPrintPackages(FFPackagesOptions* options)
FF_PRINT_PACKAGE(scoop)
FF_PRINT_PACKAGE(choco)
FF_PRINT_PACKAGE(pkgtool)
FF_PRINT_PACKAGE(paludis)
putchar('\n');
}