summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:58:08 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:58:08 +0000
commit3e18cc75df223120d215ee431b1f35fd6eb4a252 (patch)
treec8eb48c8404f7e84d967a4085fbea421a15d6e46 /apt-pkg
parente7b470eefa0499d0edbdda4f466eb77b17c2067b (diff)
deblistparser.cc
Author: jgg Date: 2001-05-27 05:42:36 GMT deblistparser.cc
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/deb/deblistparser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc
index 267636776..1d2c426d8 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.25 2001/05/27 05:36:04 jgg Exp $
+// $Id: deblistparser.cc,v 1.26 2001/05/27 05:42:36 jgg Exp $
/* ######################################################################
Package Cache Generator - Generator for the cache structure.
@@ -411,7 +411,7 @@ const char *debListParser::ParseDepends(const char *Start,const char *Stop,
if (End == Stop)
return 0;
- if (stringcmp(arch.c_str(),arch.c_str()+arch.length(),I,End) == 0)
+ if (stringcmp(arch,I,End) == 0)
Found = true;
if (*End++ == ']') {
@@ -538,7 +538,7 @@ bool debListParser::Step()
if (Section.Find("Architecture",Start,Stop) == false)
return true;
- if (stringcmp(Arch.c_str(),Arch.c_str()+Arch.length(),Start,Stop) == 0)
+ if (stringcmp(Arch,Start,Stop) == 0)
return true;
if (stringcmp(Start,Stop,"all") == 0)