xbps-query: add repo and pkgdb mode to --cat

This commit is contained in:
Duncan Overbruck
2021-12-19 16:07:25 +01:00
parent 3939d9aeb5
commit f5355e53cd
7 changed files with 75 additions and 3 deletions

View File

@@ -288,8 +288,10 @@ main(int argc, char **argv)
} else if (catfile) {
/* repo cat file mode */
rv = repo_cat_file(&xh, pkg, catfile);
if (repo_mode)
rv = repo_cat_file(&xh, pkg, catfile);
else
rv = cat_file(&xh, pkg, catfile);
} else if (show || show_prop) {
/* show mode */
if (repo_mode)