diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-06-19 20:55:01 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-06-19 20:56:18 +0300 |
commit | 6da083fc24e4f1ef0363957074148d1bc11cef83 (patch) | |
tree | 7c6e6e08c7f1506dbdcc3404ac6f03e2bd498a76 /src/search.c | |
parent | e4c65886dd1758657ccf58e14523c2da57f2c98a (diff) | |
download | apk-tools-6da083fc24e4f1ef0363957074148d1bc11cef83.tar.gz apk-tools-6da083fc24e4f1ef0363957074148d1bc11cef83.tar.bz2 apk-tools-6da083fc24e4f1ef0363957074148d1bc11cef83.tar.xz apk-tools-6da083fc24e4f1ef0363957074148d1bc11cef83.zip |
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.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c index 3c323db..2b7b5e1 100644 --- a/src/search.c +++ b/src/search.c @@ -157,7 +157,9 @@ static int search_main(void *pctx, struct apk_database *db, struct apk_string_ar *pmatch = tmp; } } - apk_name_foreach_matching(db, args, apk_foreach_genid(), print_result, ctx); + apk_name_foreach_matching( + db, args, APK_FOREACH_NULL_MATCHES_ALL | apk_foreach_genid(), + print_result, ctx); return 0; } |