libxbps: finish support for rindex 1.6.

This commit is contained in:
Juan RP
2012-12-07 17:11:52 +01:00
parent 14d1734a84
commit 1d42986b75
3 changed files with 6 additions and 4 deletions

View File

@ -101,7 +101,7 @@ xbps_rindex_sync(struct xbps_handle *xhp, const char *uri, const char *plistf)
/*
* 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
* 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.
*/
lrepofile = xbps_xasprintf("%s/%s", lrepodir, plistf);
lrepofile = xbps_xasprintf("%s/%s-%s", lrepodir,
xhp->un_machine, plistf);
/*
* Create repodir in metadir.
*/