xbps-query: do not sync repo index-files; use xbps-install -S instead.

This commit is contained in:
Juan RP 2013-01-31 10:44:27 +01:00
parent a92d6e73e5
commit cc068b2b39

View File

@ -175,15 +175,9 @@ int
repo_ownedby(struct xbps_handle *xhp, int npatterns, char **patterns) repo_ownedby(struct xbps_handle *xhp, int npatterns, char **patterns)
{ {
struct ffdata ffd; struct ffdata ffd;
int rv;
ffd.npatterns = npatterns; ffd.npatterns = npatterns;
ffd.patterns = patterns; ffd.patterns = patterns;
if ((rv = xbps_rpool_sync(xhp, XBPS_PKGINDEX_FILES, NULL)) != 0) {
fprintf(stderr, "xbps-query: failed to sync rindex "
"files: %s\n", strerror(rv));
return rv;
}
return xbps_rpool_foreach(xhp, repo_ownedby_cb, &ffd); return xbps_rpool_foreach(xhp, repo_ownedby_cb, &ffd);
} }