xbps-repo(8): the 'find-files' target now accepts multiple patterns.

This commit is contained in:
Juan RP
2011-12-22 11:01:28 +01:00
parent d4278be914
commit 47237846ae
5 changed files with 40 additions and 14 deletions

View File

@ -225,10 +225,10 @@ main(int argc, char **argv)
prop_object_release(pkgd);
} else if (strcasecmp(argv[0], "find-files") == 0) {
/* Finds files by patterns, exact matches and components. */
if (argc != 2)
if (argc < 2)
usage(xhp);
rv = repo_find_files_in_packages(argv[1]);
rv = repo_find_files_in_packages(argc, argv);
if (rv == ENOTSUP) {
xbps_error_printf("xbps-repo: no repositories "
"currently registered!\n");