summaryrefslogtreecommitdiff
path: root/src/ver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ver.c')
-rw-r--r--src/ver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ver.c b/src/ver.c
index 90b6cd6..05ffce9 100644
--- a/src/ver.c
+++ b/src/ver.c
@@ -130,6 +130,10 @@ static void ver_print_package_status(struct ver_ctx *ictx, struct apk_database *
opstr = apk_version_op_string(r);
if ((ictx->limchars != NULL) && (strchr(ictx->limchars, *opstr) == NULL))
return;
+ if (apk_verbosity <= 0) {
+ printf("%s\n", pkg->name->name);
+ return;
+ }
snprintf(pkgname, sizeof(pkgname), PKG_VER_FMT,
PKG_VER_PRINTF(pkg));
printf("%-40s%s " BLOB_FMT, pkgname, opstr, BLOB_PRINTF(*latest));