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:
Juan RP 2010-01-14 01:00:42 +01:00
parent 27dd304d76
commit 15be7b43a4

View File

@ -115,6 +115,10 @@ xbps_pkgdep_match(const char *instpkg, char *pattern)
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, "><=");
if (condition) {
const char *ch;