xbps-query: implemented -X, --revdeps in repository mode.

This commit is contained in:
Juan RP
2012-11-21 02:52:36 +01:00
parent 37e5d7ebe0
commit 79a31bb6bc
5 changed files with 62 additions and 4 deletions

View File

@ -251,8 +251,13 @@ main(int argc, char **argv)
} else if (show_rdeps) {
/* show-rdeps mode */
rv = show_pkg_revdeps(&xh, argv[optind]);
if (repo_mode)
rv = repo_show_pkg_revdeps(&xh, argv[optind]);
else {
rv = show_pkg_revdeps(&xh, argv[optind]);
if (rv == ENOENT)
rv = repo_show_pkg_revdeps(&xh, argv[optind]);
}
}
xbps_end(&xh);