mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-10-28 15:53:51 +01:00
Packages (Linux): detects rum overlay packages (#2597)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user