]> git.saurik.com Git - apt.git/commitdiff
treat an empty dependency field just like it doesn't exist
authorDavid Kalnischkies <david@kalnischkies.de>
Wed, 20 Jan 2016 11:24:48 +0000 (12:24 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 25 Jan 2016 17:15:44 +0000 (18:15 +0100)
Git-Dch: Ignore

apt-pkg/deb/deblistparser.cc

index 17e781c486a95df21308729259351d244f2c7d71..090673db2a5a3b358550fda19b54751e3d58e50b 100644 (file)
@@ -813,7 +813,7 @@ bool debListParser::ParseDepends(pkgCache::VerIterator &Ver,
 {
    const char *Start;
    const char *Stop;
-   if (Section.Find(Tag,Start,Stop) == false)
+   if (Section.Find(Tag,Start,Stop) == false || Start == Stop)
       return true;
 
    string const pkgArch = Ver.Arch();