From 6da083fc24e4f1ef0363957074148d1bc11cef83 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 19 Jun 2013 20:55:01 +0300 Subject: all: few behavioural regression fixes Wildcard matching with no names should match all packages only for info and search applet. "apk del" would otherwise try to delete everything, etc. Fix also interactive mode to ask questions only if we are actually changing something. --- src/ver.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ver.c') diff --git a/src/ver.c b/src/ver.c index 5f340c4..94220a9 100644 --- a/src/ver.c +++ b/src/ver.c @@ -174,8 +174,9 @@ static int ver_main(void *pctx, struct apk_database *db, struct apk_string_array if (apk_verbosity > 0) printf("%-42sAvailable:\n", "Installed:"); - apk_name_foreach_matching(db, args, apk_foreach_genid(), - ver_print_package_status, ctx); + apk_name_foreach_matching( + db, args, APK_FOREACH_NULL_MATCHES_ALL | apk_foreach_genid(), + ver_print_package_status, ctx); return 0; } -- cgit v1.2.3-60-g2f50