Replace ResolveVirtualPackage function with GetDatabaseVirtualPackageEntry

This commit is contained in:
2026-02-05 14:54:08 +02:00
parent 8579c688d7
commit 619335bbe6
4 changed files with 14 additions and 14 deletions
+2 -1
View File
@@ -201,8 +201,9 @@ func resolvePackageDependenciesFromDatabase(resolved *[]pkgInstallationReason, u
*unresolved = stringSliceRemove(*unresolved, resolvedVirtualPkg)
continue
} else if entry = ResolveVirtualPackage(pkgIR.PkgName); entry != nil {
} else if providers := GetDatabaseVirtualPackageEntry(pkgIR.PkgName); len(providers) > 0 {
// Virtual package found in database
entry = providers[0]
} else {
// Virtual package not found
if !slices.Contains(*unresolved, pkgIR.PkgName) {