summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/deblistparser.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:50:54 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:50:54 +0000
commitb35d2f5fa0e797bf7062a1a7448a5d54bb396071 (patch)
treef87dc91079639f2a250b8901265ef35e4517cf5a /apt-pkg/deb/deblistparser.cc
parentf1148902de0b269467d445554f5d860513e39871 (diff)
Progress and combined cache generator
Author: jgg Date: 1998-07-26 04:49:26 GMT Progress and combined cache generator
Diffstat (limited to 'apt-pkg/deb/deblistparser.cc')
-rw-r--r--apt-pkg/deb/deblistparser.cc14
1 files changed, 5 insertions, 9 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc
index c2ae6de9c..f1c1925e1 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.8 1998/07/19 04:42:16 jgg Exp $
+// $Id: deblistparser.cc,v 1.9 1998/07/26 04:49:37 jgg Exp $
/* ######################################################################
Package Cache Generator - Generator for the cache structure.
@@ -133,16 +133,13 @@ string debListParser::Version()
bool debListParser::NewVersion(pkgCache::VerIterator Ver)
{
// Parse the section
- if ((Ver->Section = UniqFindTagWrite("Section")) == 0)
- return _error->Warning("Missing Section tag");
+ Ver->Section = UniqFindTagWrite("Section");
// Archive Size
- if ((Ver->Size = (unsigned)FindTagI("Size")) == 0)
- return _error->Error("Unparsable Size field");
+ Ver->Size = (unsigned)FindTagI("Size");
// Unpacked Size (in K)
- if ((Ver->InstalledSize = (unsigned)FindTagI("Installed-Size")) == 0)
- return _error->Error("Unparsable Installed-Size field");
+ Ver->InstalledSize = (unsigned)FindTagI("Installed-Size");
Ver->InstalledSize *= 1024;
// Priority
@@ -187,8 +184,7 @@ bool debListParser::UsePackage(pkgCache::PkgIterator Pkg,
pkgCache::VerIterator Ver)
{
if (Pkg->Section == 0)
- if ((Pkg->Section = UniqFindTagWrite("Section")) == 0)
- return false;
+ Pkg->Section = UniqFindTagWrite("Section");
if (HandleFlag("Essential",Pkg->Flags,pkgCache::Flag::Essential) == false)
return false;
if (HandleFlag("Immediate-Configure",Pkg->Flags,pkgCache::Flag::ImmediateConf) == false)