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:
Juan RP 2009-04-09 13:14:30 +02:00
parent 1a26816aa3
commit ecd5d55f17
2 changed files with 10 additions and 7 deletions

View file

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