diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:07 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:58:07 +0000 |
commit | e7b470eefa0499d0edbdda4f466eb77b17c2067b (patch) | |
tree | 3edaecfaeb5c653fc7f23ba39e9bc3c47305e34d /apt-pkg/deb | |
parent | 0db4a45bf91faa06616a90865068ac6c07885edf (diff) |
More ignoring of versionless packages
Author: jgg
Date: 2001-05-27 05:36:04 GMT
More ignoring of versionless packages
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/deblistparser.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 2b3dfaf6e..267636776 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: deblistparser.cc,v 1.24 2001/02/20 07:03:17 jgg Exp $ +// $Id: deblistparser.cc,v 1.25 2001/05/27 05:36:04 jgg Exp $ /* ###################################################################### Package Cache Generator - Generator for the cache structure. @@ -16,6 +16,8 @@ #include <apt-pkg/strutl.h> #include <apt-pkg/crc-16.h> +#include <ctype.h> + #include <system.h> /*}}}*/ @@ -409,7 +411,7 @@ const char *debListParser::ParseDepends(const char *Start,const char *Stop, if (End == Stop) return 0; - if (stringcmp(I,End,arch.begin(),arch.end()) == 0) + if (stringcmp(arch.c_str(),arch.c_str()+arch.length(),I,End) == 0) Found = true; if (*End++ == ']') { @@ -536,7 +538,7 @@ bool debListParser::Step() if (Section.Find("Architecture",Start,Stop) == false) return true; - if (stringcmp(Start,Stop,Arch.begin(),Arch.end()) == 0) + if (stringcmp(Arch.c_str(),Arch.c_str()+Arch.length(),Start,Stop) == 0) return true; if (stringcmp(Start,Stop,"all") == 0) |