mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-08 06:00:08 +01:00
Packages (Linux): support porg
This commit is contained in:
@@ -40,6 +40,7 @@ typedef struct FFPackagesResult {
|
||||
uint32_t pkg;
|
||||
uint32_t pkgsrc;
|
||||
uint32_t pkgtool;
|
||||
uint32_t porg;
|
||||
uint32_t rpm;
|
||||
uint32_t scoopGlobal;
|
||||
uint32_t scoopUser;
|
||||
|
||||
@@ -493,6 +493,9 @@ static void getPackageCounts(FFstrbuf* baseDir, FFPackagesResult* packageCounts,
|
||||
if (FF_PACKAGES_IS_ENABLED(options, PKGTOOL)) {
|
||||
packageCounts->pkgtool += getNumElements(baseDir, "/var/log/packages", false);
|
||||
}
|
||||
if (FF_PACKAGES_IS_ENABLED(options, PORG)) {
|
||||
packageCounts->porg += getNumElements(baseDir, "/var/log/porg", false);
|
||||
}
|
||||
if (FF_PACKAGES_IS_ENABLED(options, RPM)) {
|
||||
// `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");
|
||||
|
||||
Reference in New Issue
Block a user