diff --git a/lib/util.c b/lib/util.c index 68ec1872..b714ec1d 100644 --- a/lib/util.c +++ b/lib/util.c @@ -214,7 +214,7 @@ get_pkg_index_remote_plist(const char *uri) return NULL; if (strcmp(xhp->rootdir, "/") == 0) { - repodir = xbps_xasprintf("%s/%s/%s", + repodir = xbps_xasprintf("/%s/%s/%s", XBPS_META_PATH, uri_fixed, XBPS_PKGINDEX); } else { repodir = xbps_xasprintf("%s/%s/%s/%s",