libxbps: xbps_pkgpattern_{name,version}: match for dewey and glob patterns.

The match code used by libxbps now will only match for dewey patterns
and glob patterns (fnmatch).

Bumped XBPS_API_VERSION due to changed behaviour.
This commit is contained in:
Juan RP 2011-10-24 09:28:43 +02:00
parent 4afaac4179
commit 9281e9625f
2 changed files with 4 additions and 4 deletions

View File

@ -55,8 +55,8 @@
*/ */
#define XBPS_PKGINDEX_VERSION "1.2" #define XBPS_PKGINDEX_VERSION "1.2"
#define XBPS_API_VERSION "20111020-1" #define XBPS_API_VERSION "20111024"
#define XBPS_VERSION "0.10.0" #define XBPS_VERSION "0.11.0"
/** /**
* @def XBPS_RELVER * @def XBPS_RELVER

View File

@ -172,7 +172,7 @@ xbps_pkgpattern_name(const char *pkg)
assert(pkg != NULL); assert(pkg != NULL);
res = strpbrk(pkg, "><="); res = strpbrk(pkg, "><-");
if (res == NULL) if (res == NULL)
return NULL; return NULL;
@ -193,7 +193,7 @@ xbps_pkgpattern_version(const char *pkg)
assert(pkg != NULL); assert(pkg != NULL);
res = strpbrk(pkg, "><="); res = strpbrk(pkg, "><-");
if (res == NULL) if (res == NULL)
return NULL; return NULL;