libxbps: there's no need to look for vpkgs in xbps_repository_update_*().

This commit is contained in:
Juan RP
2011-10-31 21:01:53 +01:00
parent b8c804e891
commit cf1b893995
2 changed files with 5 additions and 3 deletions

View File

@@ -88,8 +88,10 @@ repository_find_pkg(const char *pattern, const char *reason)
pkg_repod = xbps_repository_pool_find_pkg(pattern,
bypattern, bestpkg);
if (pkg_repod == NULL) {
pkg_repod = xbps_repository_pool_find_virtualpkg(pattern,
bypattern, bestpkg);
if (bestpkg == false) {
pkg_repod = xbps_repository_pool_find_virtualpkg(
pattern, bypattern, bestpkg);
}
if (pkg_repod == NULL) {
/* not found */
rv = errno;