xbps-query: sync XBPS_PKGINDEX_FILES with ownedby in repository mode.

This commit is contained in:
Juan RP 2012-11-07 10:45:10 +01:00
parent d3f5223c1b
commit 2a1e4fe137

View File

@ -201,9 +201,13 @@ int
repo_ownedby(struct xbps_handle *xhp, int npatterns, char **patterns)
{
struct ffdata ffd;
int rv;
ffd.npatterns = npatterns;
ffd.patterns = patterns;
if ((rv = xbps_rpool_sync(xhp, XBPS_PKGINDEX_FILES, NULL)) != 0)
return rv;
return xbps_rpool_foreach(xhp, repo_ownedby_cb, &ffd);
}