From 29064d88f3a972b69a006d7a8092159bd65ef03f Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Tue, 14 Feb 2012 16:34:10 +0200 Subject: ver: by default show only upgradeable packages --- src/ver.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ver.c b/src/ver.c index 1750047..5482f87 100644 --- a/src/ver.c +++ b/src/ver.c @@ -125,6 +125,12 @@ static int ver_main(void *ctx, struct apk_database *db, int argc, char **argv) struct apk_name *name; int i, j, ret = 0; + if (ictx->limchars) { + if (strlen(ictx->limchars) == 0) + ictx->limchars = NULL; + } else { + ictx->limchars = "<"; + } if (ictx->action != NULL) return ictx->action(db, argc, argv); -- cgit v1.2.3-70-g09d2