[PATCH 2/5] query: allow querying extra info for package files

Andrew Gregory andrew.gregory.8 at gmail.com
Sun Feb 6 18:30:38 UTC 2022


Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
---
 src/pacman/query.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/pacman/query.c b/src/pacman/query.c
index afcbbd4f..d75c4c80 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -306,11 +306,7 @@ static int display(alpm_pkg_t *pkg)
 	int ret = 0;
 
 	if(config->op_q_info) {
-		if(config->op_q_isfile) {
-			dump_pkg_full(pkg, 0);
-		} else {
-			dump_pkg_full(pkg, config->op_q_info > 1);
-		}
+		dump_pkg_full(pkg, config->op_q_info > 1);
 	}
 	if(config->op_q_list) {
 		dump_pkg_files(pkg, config->quiet);
-- 
2.35.0



More information about the pacman-dev mailing list