feat(linux-packages): add pacman packages count

This commit is contained in:
utox39 committed 2025-12-09 21:24:24 +01:00
1 parent 6f4e4eb044
commit 2de0d6ec09
1 file changed
+5
+5
View File
@@ -50,3 +50,8 @@ fn countDpkgPackages(allocator: std.mem.Allocator) !usize {
// Subtruct 1 to remove an empty line
return count - 1;
}
fn countPacmanPackages() !usize {
// Subtruct 1 to remove `ALPM_DB_VERSION` from the count
return try utils.countEntries("/var/lib/pacman/local") - 1;
}