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);
|
vpkgn = xbps_pkg_name(buf);
|
||||||
assert(vpkgn);
|
assert(vpkgn);
|
||||||
free(buf);
|
|
||||||
if (strcmp(vpkgn, pkg)) {
|
if (strcmp(vpkgn, pkg)) {
|
||||||
free(vpkgn);
|
free(vpkgn);
|
||||||
|
free(buf);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
free(vpkgn);
|
free(vpkgn);
|
||||||
rv = xbps_rpool_foreach(xhp, repo_revdeps_cb,
|
rv = xbps_rpool_foreach(xhp, repo_revdeps_cb,
|
||||||
__UNCONST(vpkg));
|
__UNCONST(buf));
|
||||||
|
free(buf);
|
||||||
if (rv == EEXIST) {
|
if (rv == EEXIST) {
|
||||||
rv = 0;
|
rv = 0;
|
||||||
matched = true;
|
matched = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user