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:
parent
4afaac4179
commit
9281e9625f
@ -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
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user