diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2016-12-30 13:49:21 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2016-12-30 13:49:21 -0800 |
commit | cc51afda7080d6f3cc1cffe6f956d5376c4cb40e (patch) | |
tree | fd51117dd9b08d141d9a307d7dcd0c0a5bf3be5e | |
parent | 7cafe70555740bd0acbf0b8d2193b95423e7436b (diff) |
My "tolerance" patch was a tad bit overzealous :(.
-rw-r--r-- | apt-pkg/deb/deblistparser.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apt-pkg/deb/deblistparser.cc b/apt-pkg/deb/deblistparser.cc index 258344009..25d8e6f22 100644 --- a/apt-pkg/deb/deblistparser.cc +++ b/apt-pkg/deb/deblistparser.cc @@ -824,10 +824,8 @@ bool debListParser::ParseDepends(pkgCache::VerIterator &Ver, unsigned int Op; Start = ParseDepends(Start, Stop, Package, Version, Op, false, false, false); - if (Start == 0) { - _error->Warning("Problem parsing dependency %zu",static_cast<size_t>(Key)); // TODO - continue; - } + if (Start == 0) + return _error->Warning("Problem parsing dependency %zu",static_cast<size_t>(Key)); // TODO size_t const found = Package.rfind(':'); if (found == string::npos) @@ -894,10 +892,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) { |