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

@ -55,7 +55,7 @@
*/
#define XBPS_PKGINDEX_VERSION "1.2"
#define XBPS_API_VERSION "20111030-2"
#define XBPS_API_VERSION "20111031"
#define XBPS_VERSION "0.11.0"
/**

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;