xbps-repo(8): improved the 'search' target to also match substrings

in package/version tuples.
This commit is contained in:
Juan RP 2010-05-12 05:04:35 +02:00
parent f2d8d5cc89
commit 401d197c06
2 changed files with 7 additions and 0 deletions

5
NEWS
View File

@ -1,3 +1,8 @@
xbps-0.6.0 (2010-07-01):
* xbps-repo(8): improved the 'search' target to also match substrings in
package/version tuples.
xbps-0.5.1 (2010-05-12): xbps-0.5.1 (2010-05-12):
* Fixed build issues in RHEL5, Ubuntu and others distributions. * Fixed build issues in RHEL5, Ubuntu and others distributions.

View File

@ -198,6 +198,8 @@ show_pkg_namedesc(prop_object_t obj, void *arg, bool *loop_done)
printf(" %s - %s\n", pkgver, desc); printf(" %s - %s\n", pkgver, desc);
else if (xbps_pkgpattern_match(desc, pattern) == 1) else if (xbps_pkgpattern_match(desc, pattern) == 1)
printf(" %s - %s\n", pkgver, desc); printf(" %s - %s\n", pkgver, desc);
else if (strstr(pkgver, pattern))
printf(" %s - %s\n", pkgver, desc);
return 0; return 0;
} }