xbps_pkgmatch: before checking pattern with csh_match(), try to see if
a full match with strcmp() is enough. --HG-- extra : convert_revision : xtraeme%40gmail.com-20100114000042-ge4iajc9jownixhe
This commit is contained in:
@ -115,6 +115,10 @@ xbps_pkgdep_match(const char *instpkg, char *pattern)
|
|||||||
|
|
||||||
memset(&basefname, 0, sizeof(basefname));
|
memset(&basefname, 0, sizeof(basefname));
|
||||||
|
|
||||||
|
/* Check for a full match with strcmp, otherwise try csh_match() */
|
||||||
|
if (strcmp(instpkg, pattern) == 0)
|
||||||
|
return 1;
|
||||||
|
|
||||||
condition = strpbrk(pattern, "><=");
|
condition = strpbrk(pattern, "><=");
|
||||||
if (condition) {
|
if (condition) {
|
||||||
const char *ch;
|
const char *ch;
|
||||||
|
Reference in New Issue
Block a user