From b7da3464dd62aad65f78aa5750c3722274c28ffb Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 25 Jan 2012 06:02:38 +0100 Subject: [PATCH] xbps_repository_sync_pkg_index: update for index 1.4 format. --- include/xbps_api.h | 2 +- lib/repository_sync_index.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/xbps_api.h b/include/xbps_api.h index e3bdfb38..4e43b39a 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -56,7 +56,7 @@ */ #define XBPS_PKGINDEX_VERSION "1.4" -#define XBPS_API_VERSION "20120125" +#define XBPS_API_VERSION "20120125-1" #define XBPS_VERSION "0.12" /** diff --git a/lib/repository_sync_index.c b/lib/repository_sync_index.c index 1c199a69..2b3e8e1e 100644 --- a/lib/repository_sync_index.c +++ b/lib/repository_sync_index.c @@ -88,7 +88,7 @@ xbps_get_remote_repo_string(const char *uri) int xbps_repository_sync_pkg_index(const char *uri, const char *plistf) { - prop_dictionary_t tmpd; + prop_array_t array; struct xbps_handle *xhp; struct url *url = NULL; struct stat st; @@ -191,15 +191,15 @@ xbps_repository_sync_pkg_index(const char *uri, const char *plistf) * some HTTP servers don't return proper errors and sometimes * you get an HTML ASCII file :-) */ - tmpd = prop_dictionary_internalize_from_zfile(tmp_metafile); - if (tmpd == NULL) { + array = prop_array_internalize_from_zfile(tmp_metafile); + if (array == NULL) { xbps_set_cb_state(XBPS_STATE_REPOSYNC_FAIL, 0, NULL, NULL, "[reposync] downloaded file `%s' is not valid.", rpidx); (void)unlink(tmp_metafile); rv = -1; goto out; } - prop_object_release(tmpd); + prop_object_release(array); lrepofile = xbps_xasprintf("%s/%s", lrepodir, plistf); if (lrepofile == NULL) {