libxbps: finish support for rindex 1.6.
This commit is contained in:
parent
14d1734a84
commit
1d42986b75
@ -64,7 +64,7 @@
|
|||||||
*/
|
*/
|
||||||
#define XBPS_PKGINDEX_VERSION "1.6"
|
#define XBPS_PKGINDEX_VERSION "1.6"
|
||||||
|
|
||||||
#define XBPS_API_VERSION "20121202"
|
#define XBPS_API_VERSION "20121207"
|
||||||
|
|
||||||
#ifndef XBPS_VERSION
|
#ifndef XBPS_VERSION
|
||||||
#define XBPS_VERSION "UNSET"
|
#define XBPS_VERSION "UNSET"
|
||||||
|
@ -101,7 +101,7 @@ xbps_rindex_sync(struct xbps_handle *xhp, const char *uri, const char *plistf)
|
|||||||
/*
|
/*
|
||||||
* Remote repository plist index full URL.
|
* Remote repository plist index full URL.
|
||||||
*/
|
*/
|
||||||
rpidx = xbps_xasprintf("%s/%s", uri, plistf);
|
rpidx = xbps_xasprintf("%s/%s-%s", uri, xhp->un_machine, plistf);
|
||||||
/*
|
/*
|
||||||
* Full path to repository directory to store the plist
|
* Full path to repository directory to store the plist
|
||||||
* index file.
|
* index file.
|
||||||
@ -110,7 +110,8 @@ xbps_rindex_sync(struct xbps_handle *xhp, const char *uri, const char *plistf)
|
|||||||
/*
|
/*
|
||||||
* Full path to the local repository index file.
|
* Full path to the local repository index file.
|
||||||
*/
|
*/
|
||||||
lrepofile = xbps_xasprintf("%s/%s", lrepodir, plistf);
|
lrepofile = xbps_xasprintf("%s/%s-%s", lrepodir,
|
||||||
|
xhp->un_machine, plistf);
|
||||||
/*
|
/*
|
||||||
* Create repodir in metadir.
|
* Create repodir in metadir.
|
||||||
*/
|
*/
|
||||||
|
@ -179,7 +179,8 @@ get_pkg_index_remote_plist(struct xbps_handle *xhp,
|
|||||||
if (uri_fixed == NULL)
|
if (uri_fixed == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
repodir = xbps_xasprintf("%s/%s/%s", xhp->metadir, uri_fixed, plistf);
|
repodir = xbps_xasprintf("%s/%s/%s-%s", xhp->metadir,
|
||||||
|
uri_fixed, xhp->un_machine, plistf);
|
||||||
free(uri_fixed);
|
free(uri_fixed);
|
||||||
return repodir;
|
return repodir;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user