From 6078d305f49f953f8a8ef6081b53f3d0948752e1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 20 Jan 2009 13:26:06 +0000 Subject: info: don't print package name unless its installed --- src/info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/info.c') diff --git a/src/info.c b/src/info.c index 0e175d7..02440e6 100644 --- a/src/info.c +++ b/src/info.c @@ -118,7 +118,8 @@ static int info_contents(struct apk_database *db, int argc, char **argv) } for (j = 0; j < name->pkgs->num; j++) { struct apk_package *pkg = name->pkgs->item[j]; - if (apk_verbosity == 1) + if (apk_verbosity == 1 + && apk_pkg_get_state(pkg) == APK_STATE_INSTALL) printf("\n%s-%s contains:\n", pkg->name->name, pkg->version); info_print_contents(name->pkgs->item[j]); -- cgit v1.2.3