xbps-query(8): extend 734a2c3 to also match with pkgpatterns.

This commit is contained in:
Juan RP 2013-06-12 04:48:36 +02:00
parent 5f02790ac7
commit 6a9e394a60

View File

@ -195,14 +195,15 @@ repo_show_pkg_revdeps(struct xbps_handle *xhp, const char *pkg)
vpkgn = xbps_pkg_name(buf);
assert(vpkgn);
free(buf);
if (strcmp(vpkgn, pkg)) {
free(vpkgn);
free(buf);
continue;
}
free(vpkgn);
rv = xbps_rpool_foreach(xhp, repo_revdeps_cb,
__UNCONST(vpkg));
__UNCONST(buf));
free(buf);
if (rv == EEXIST) {
rv = 0;
matched = true;