diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:09 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:09 +0000 |
commit | c24972cb9ecaca477099c695f0929a0dd1415a51 (patch) | |
tree | 3180d1f8ec1132846efc089e1ba7543dcd455274 /apt-pkg/pkgcachegen.cc | |
parent | 3e18cc75df223120d215ee431b1f35fd6eb4a252 (diff) |
Changed comparision operators
Author: jgg
Date: 2001-05-27 05:55:27 GMT
Changed comparision operators
Diffstat (limited to 'apt-pkg/pkgcachegen.cc')
-rw-r--r-- | apt-pkg/pkgcachegen.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apt-pkg/pkgcachegen.cc b/apt-pkg/pkgcachegen.cc index 031f9b807..026f795eb 100644 --- a/apt-pkg/pkgcachegen.cc +++ b/apt-pkg/pkgcachegen.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcachegen.cc,v 1.48 2001/05/27 05:36:04 jgg Exp $ +// $Id: pkgcachegen.cc,v 1.49 2001/05/27 05:55:27 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -134,8 +134,7 @@ bool pkgCacheGenerator::MergeList(ListParser &List, int Res = 1; for (; Ver.end() == false; Last = &Ver->NextVer, Ver++) { - Res = Cache.VS->DoCmpVersion(Version.c_str(),Version.c_str()+Version.length(),Ver.VerStr(), - Ver.VerStr() + strlen(Ver.VerStr())); + Res = Cache.VS->CmpVersion(Version,Ver.VerStr()); if (Res >= 0) break; } @@ -166,8 +165,7 @@ bool pkgCacheGenerator::MergeList(ListParser &List, { for (; Ver.end() == false; Last = &Ver->NextVer, Ver++) { - Res = Cache.VS->DoCmpVersion(Version.c_str(),Version.c_str()+Version.length(),Ver.VerStr(), - Ver.VerStr() + strlen(Ver.VerStr())); + Res = Cache.VS->CmpVersion(Version,Ver.VerStr()); if (Res != 0) break; } |