diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-02-14 16:34:10 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-02-14 16:34:10 +0200 |
commit | 29064d88f3a972b69a006d7a8092159bd65ef03f (patch) | |
tree | 7bda990c3426b66feaa0d3415eba54af6c31a266 /src | |
parent | ab20d618329f481d05fd9f1a94bfd2b6bbd5389c (diff) | |
download | apk-tools-29064d88f3a972b69a006d7a8092159bd65ef03f.tar.gz apk-tools-29064d88f3a972b69a006d7a8092159bd65ef03f.tar.bz2 apk-tools-29064d88f3a972b69a006d7a8092159bd65ef03f.tar.xz apk-tools-29064d88f3a972b69a006d7a8092159bd65ef03f.zip |
ver: by default show only upgradeable packages
Diffstat (limited to 'src')
-rw-r--r-- | src/ver.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |