more pkg stuff

This commit is contained in:
Mars 2025-05-04 00:15:28 -04:00
parent 7d5d7b488a
commit 71f9c1ce63
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
5 changed files with 4 additions and 29 deletions

View file

@ -261,8 +261,6 @@ namespace os {
}
fn GetPackageCount() -> Result<u64, DracError> {
u64 count = 0;
BPackageKit::BPackageRoster roster;
BPackageKit::BPackageInfoSet packageList;
@ -271,14 +269,7 @@ namespace os {
if (status != B_OK)
return Err(DracError(DracErrorCode::ApiUnavailable, "Failed to get active package list"));
count += static_cast<u64>(packageList.CountInfos());
if (Result<u64, DracError> sharedCount = shared::GetPackageCount())
count += *sharedCount;
else
debug_at(sharedCount.error());
return count;
return static_cast<u64>(packageList.CountInfos());
}
} // namespace os