ver: by default show only upgradeable packages

cute-signatures
Timo Teräs 2012-02-14 16:34:10 +02:00
parent ab20d61832
commit 29064d88f3
1 changed files with 6 additions and 0 deletions

View File

@ -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);