Packages (Linux): detects rum overlay packages (#2597)

This commit is contained in:
Natsu
2026-09-21 13:30:25 +08:00
committed by GitHub
parent 3503facd68
commit 203ccb31fa
6 changed files with 14 additions and 1 deletions
+1
View File
@@ -44,6 +44,7 @@ typedef struct FFPackagesResult {
uint32_t pkgtool;
uint32_t porg;
uint32_t rpm;
uint32_t rum;
uint32_t scoopGlobal;
uint32_t scoopUser;
uint32_t snap;
+3
View File
@@ -528,6 +528,9 @@ static void getPackageCounts(FFstrbuf* baseDir, FFPackagesResult* packageCounts,
// `Sigmd5` is the only table that doesn't contain the virtual `gpg-pubkey` package
packageCounts->rpm += getSQLite3Int(baseDir, "/var/lib/rpm/rpmdb.sqlite", "SELECT count(*) FROM Sigmd5", "rpm");
}
if (FF_PACKAGES_IS_ENABLED(options, RUM)) {
packageCounts->rum += getSQLite3Int(baseDir, "/var/lib/rakuos/rum-rpmdb/rpmdb.sqlite", "SELECT count(*) FROM Sigmd5", "rum");
}
if (FF_PACKAGES_IS_ENABLED(options, SNAP)) {
packageCounts->snap += getSnap(baseDir);
}