From cf1b893995bd9f13147a0151d837a62c0971b2c7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 31 Oct 2011 21:01:53 +0100 Subject: [PATCH] libxbps: there's no need to look for vpkgs in xbps_repository_update_*(). --- include/xbps_api.h | 2 +- lib/repository_findpkg.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/include/xbps_api.h b/include/xbps_api.h index 7a33f8f1..fdeda28d 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -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" /** diff --git a/lib/repository_findpkg.c b/lib/repository_findpkg.c index c01bb026..7d00f01a 100644 --- a/lib/repository_findpkg.c +++ b/lib/repository_findpkg.c @@ -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;