From 1422fdaeec91f13624bd07a16bf13721b687f8c6 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 30 Dec 2016 13:49:21 -0800 Subject: My "tolerance" patch was a tad bit overzealous :(. --- apt-pkg/deb/deblistparser.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 91252da5e..68c3498c8 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -860,10 +860,8 @@ bool debListParser::ParseDepends(pkgCache::VerIterator &Ver, unsigned int Op; Start = ParseDepends(Start, Stop, Package, Version, Op, false, false, false, myArch); - if (Start == 0) { - _error->Warning("Problem parsing dependency %zu",static_cast(Key)); // TODO - continue; - } + if (Start == 0) + return _error->Warning("Problem parsing dependency %zu",static_cast(Key)); // TODO size_t const found = Package.rfind(':'); if (found == string::npos) @@ -930,10 +928,8 @@ bool debListParser::ParseProvides(pkgCache::VerIterator &Ver) { Start = ParseDepends(Start,Stop,Package,Version,Op, false, false, false); const size_t archfound = Package.rfind(':'); - if (Start == 0) { - _error->Warning("Problem parsing Provides line"); - continue; - } + if (Start == 0) + return _error->Warning("Problem parsing Provides line"); if (unlikely(Op != pkgCache::Dep::NoOp && Op != pkgCache::Dep::Equals)) { _error->Warning("Ignoring Provides line with non-equal DepCompareOp for package %s", Package.to_string().c_str()); } else if (archfound != string::npos) { -- cgit v1.2.3