xbps-query(8): extend 734a2c3
to also match with pkgpatterns.
This commit is contained in:
parent
5f02790ac7
commit
6a9e394a60
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user