Sfoglia il codice sorgente

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

Git-Dch: Ignore
David Kalnischkies 10 anni fa
parent
commit
bc6b2bfa08
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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 *Start;
    const char *Stop;
    const char *Stop;
-   if (Section.Find(Tag,Start,Stop) == false)
+   if (Section.Find(Tag,Start,Stop) == false || Start == Stop)
       return true;
       return true;
 
 
    string const pkgArch = Ver.Arch();
    string const pkgArch = Ver.Arch();