summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-20 13:26:06 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-20 13:26:06 +0000
commit6078d305f49f953f8a8ef6081b53f3d0948752e1 (patch)
treef067cb7cd476d59ed44142b3b1b296d62ec8ac82 /src
parent20d242a4bd4e332ffae51f05bd5b5e44a93d7b3f (diff)
downloadapk-tools-6078d305f49f953f8a8ef6081b53f3d0948752e1.tar.gz
apk-tools-6078d305f49f953f8a8ef6081b53f3d0948752e1.tar.bz2
apk-tools-6078d305f49f953f8a8ef6081b53f3d0948752e1.tar.xz
apk-tools-6078d305f49f953f8a8ef6081b53f3d0948752e1.zip
info: don't print package name unless its installed
Diffstat (limited to 'src')
-rw-r--r--src/info.c3
1 files changed, 2 insertions, 1 deletions
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]);