Explorar o código

treat an empty dependency field just like it doesn't exist

Git-Dch: Ignore
David Kalnischkies %!s(int64=10) %!d(string=hai) anos
pai
achega
bc6b2bfa08
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apt-pkg/deb/deblistparser.cc

+ 1 - 1
apt-pkg/deb/deblistparser.cc

@@ -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();