summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-04-27 08:39:33 +0300
committerTimo Teräs <timo.teras@iki.fi>2012-04-27 08:39:33 +0300
commit06323b3778418f923bd839850c5a10f2463c02b3 (patch)
tree08eb9d486c1db8127a67be9e74159635261104be /src
parentff83382e214a36f39953c6740a62e9e2849cf87f (diff)
downloadapk-tools-06323b3778418f923bd839850c5a10f2463c02b3.tar.gz
apk-tools-06323b3778418f923bd839850c5a10f2463c02b3.tar.bz2
apk-tools-06323b3778418f923bd839850c5a10f2463c02b3.tar.xz
apk-tools-06323b3778418f923bd839850c5a10f2463c02b3.zip
ver: show all versions if package name specified
fixes #1116
Diffstat (limited to 'src')
-rw-r--r--src/ver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ver.c b/src/ver.c
index be9207d..4bfd607 100644
--- a/src/ver.c
+++ b/src/ver.c
@@ -156,7 +156,7 @@ static int ver_main(void *ctx, struct apk_database *db, int argc, char **argv)
if (ictx->limchars) {
if (strlen(ictx->limchars) == 0)
ictx->limchars = NULL;
- } else {
+ } else if (argc == 0) {
ictx->limchars = "<";
}