Просмотр исходного кода

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

Git-Dch: Ignore
David Kalnischkies лет назад: 10
Родитель
Сommit
bc6b2bfa08
1 измененных файлов с 1 добавлено и 1 удалено
  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();