rpmversion.cc: avoid extra strcmp calls
This commit is contained in:
parent
2cd7926cca
commit
5a8f69df6a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user