xbps-repo(8): fixed the 'search' target to also match patterns against
its description, and not only from the package/version touple. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100428214659-lz1au5hjg80h4j37
This commit is contained in:
@ -196,6 +196,8 @@ show_pkg_namedesc(prop_object_t obj, void *arg, bool *loop_done)
|
||||
printf(" %s - %s\n", pkgver, desc);
|
||||
else if (strcmp(pkgname, pattern) == 0)
|
||||
printf(" %s - %s\n", pkgver, desc);
|
||||
else if (xbps_pkgpattern_match(desc, pattern) == 1)
|
||||
printf(" %s - %s\n", pkgver, desc);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user