Added the "bestmatching" configuration keyword to enable pkg best matching.
See the NEWS file for more information.
This commit is contained in:
@ -275,6 +275,9 @@ xbps_rpool_get_virtualpkg(struct xbps_handle *xhp, const char *pkg)
|
||||
xbps_dictionary_t
|
||||
xbps_rpool_get_pkg(struct xbps_handle *xhp, const char *pkg)
|
||||
{
|
||||
if (xhp->flags & XBPS_FLAG_BESTMATCH)
|
||||
return repo_find_pkg(xhp, pkg, BEST_PKG);
|
||||
|
||||
return repo_find_pkg(xhp, pkg, REAL_PKG);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user