diff --git a/include/xbps_api.h b/include/xbps_api.h index 66dde846..5b303016 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -56,7 +56,7 @@ */ #define XBPS_PKGINDEX_VERSION "1.5" -#define XBPS_API_VERSION "20120601-1" +#define XBPS_API_VERSION "20120601-2" #define XBPS_VERSION "0.16" /** diff --git a/lib/repository_pool.c b/lib/repository_pool.c index ea53521b..365d7736 100644 --- a/lib/repository_pool.c +++ b/lib/repository_pool.c @@ -160,7 +160,7 @@ xbps_rpool_sync(const char *uri) if (uri && strcmp(repouri, uri)) continue; /* - * Fetch repository plist index. + * Fetch repository index. */ if (xbps_repository_sync_pkg_index(repouri, XBPS_PKGINDEX) == -1) { rv = fetchLastErrCode != 0 ? fetchLastErrCode : errno; @@ -169,6 +169,17 @@ xbps_rpool_sync(const char *uri) xbps_fetch_error_string()); continue; } + /* + * Fetch repository files index. + */ + if (xbps_repository_sync_pkg_index(repouri, + XBPS_PKGINDEX_FILES) == -1) { + rv = fetchLastErrCode != 0 ? fetchLastErrCode : errno; + xbps_dbg_printf("[rpool] `%s' failed to fetch: %s\n", + repouri, fetchLastErrCode == 0 ? strerror(errno) : + xbps_fetch_error_string()); + continue; + } } return rv; }