xbps-repo: added shell style match patterns for the 'search' target.
So you can do you now: $ xbps-repo search '*' and it will list all registered packages. --HG-- extra : convert_revision : d65edb4be6a0d815410d215774acf9ebeb23fa49
This commit is contained in:
@@ -251,7 +251,10 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
} else if (strcasecmp(argv[0], "search") == 0) {
|
||||
/* Search for a package by looking at short_desc. */
|
||||
/*
|
||||
* Search for a package by looking at pkgname/short_desc
|
||||
* by using shell style match patterns (fnmatch(3)).
|
||||
*/
|
||||
if (argc != 2)
|
||||
usage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user