diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-20 13:26:06 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-20 13:26:06 +0000 |
commit | 6078d305f49f953f8a8ef6081b53f3d0948752e1 (patch) | |
tree | f067cb7cd476d59ed44142b3b1b296d62ec8ac82 /src | |
parent | 20d242a4bd4e332ffae51f05bd5b5e44a93d7b3f (diff) | |
download | apk-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]); |