rpmversion.cc: avoid extra strcmp calls

This commit is contained in:
Alexey Tourbin 2011-01-21 22:12:23 +03:00
parent 2cd7926cca
commit 5a8f69df6a

View File

@ -202,7 +202,7 @@ bool rpmVersioningSystem::CheckDep(const char *PkgVer,
} }
// optimize: equal version strings => equal versions // optimize: equal version strings => equal versions
if (DepFlags & RPMSENSE_EQUAL) if ((DepFlags & RPMSENSE_SENSEMASK) == RPMSENSE_EQUAL)
if (PkgVer && DepVer) if (PkgVer && DepVer)
if (strcmp(PkgVer, DepVer) == 0) if (strcmp(PkgVer, DepVer) == 0)
return invert ? false : true; return invert ? false : true;