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

Message ID 20220206183041.104788-3-andrew.gregory.8@gmail.com
State New
Headers show
Series adding extended package data | expand

Commit Message

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

Patch

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);