From 5a8f69df6ac2d1141f327662b835d68aff599e2d Mon Sep 17 00:00:00 2001 From: Alexey Tourbin Date: Fri, 21 Jan 2011 22:12:23 +0300 Subject: [PATCH] rpmversion.cc: avoid extra strcmp calls --- apt/apt-pkg/rpm/rpmversion.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt/apt-pkg/rpm/rpmversion.cc b/apt/apt-pkg/rpm/rpmversion.cc index 6b4b988..d335b74 100644 --- a/apt/apt-pkg/rpm/rpmversion.cc +++ b/apt/apt-pkg/rpm/rpmversion.cc @@ -202,7 +202,7 @@ bool rpmVersioningSystem::CheckDep(const char *PkgVer, } // optimize: equal version strings => equal versions - if (DepFlags & RPMSENSE_EQUAL) + if ((DepFlags & RPMSENSE_SENSEMASK) == RPMSENSE_EQUAL) if (PkgVer && DepVer) if (strcmp(PkgVer, DepVer) == 0) return invert ? false : true;