xbps_transaction_install_pkg: proper pkg find order in rpool.
Previously it was preferring virtual packages from configuration file before real packages.
This commit is contained in:
@@ -91,8 +91,8 @@ transaction_find_pkg(const char *pkg, bool bypattern, bool best, bool exact,
|
||||
goto out;
|
||||
}
|
||||
} else {
|
||||
if (((pkg_repod = xbps_rpool_find_virtualpkg_conf(pkg, bypattern)) == NULL) &&
|
||||
((pkg_repod = xbps_rpool_find_pkg(pkg, bypattern, best)) == NULL) &&
|
||||
if (((pkg_repod = xbps_rpool_find_pkg(pkg, bypattern, best)) == NULL) &&
|
||||
((pkg_repod = xbps_rpool_find_virtualpkg_conf(pkg, bypattern)) == NULL) &&
|
||||
((pkg_repod = xbps_rpool_find_virtualpkg(pkg, bypattern)) == NULL)) {
|
||||
/* not found */
|
||||
rv = errno;
|
||||
|
Reference in New Issue
Block a user