diff --git a/src/app_list.c b/src/app_list.c index 846647b0cee2ac7142aad33cc0da96f05e10ad6d..641780f0000c68d0976a3ccc87276ce69ca33309 100644 --- a/src/app_list.c +++ b/src/app_list.c @@ -92,8 +92,13 @@ static const struct apk_package *is_upgradable(struct apk_name *name, const stru static void print_package(const struct apk_package *pkg, const struct list_ctx *ctx) { - printf(PKG_VER_FMT " " BLOB_FMT " ", - PKG_VER_PRINTF(pkg), BLOB_PRINTF(*pkg->arch)); + if (ctx-> verbosity > 0) { + printf(PKG_VER_FMT " " BLOB_FMT " ", + PKG_VER_PRINTF(pkg), BLOB_PRINTF(*pkg->arch)); + } else { + printf("%s\n", pkg->name->name); + return; + } if (pkg->origin != NULL) printf("{" BLOB_FMT "}", BLOB_PRINTF(*pkg->origin));