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

* apt-pkg/deb/debmetaindex.cc:
- don't queue translations for deb-src entries

Michael Vogt лет назад: 20
Родитель
Сommit
fb603534bf
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      apt-pkg/deb/debmetaindex.cc

+ 2 - 0
apt-pkg/deb/debmetaindex.cc

@@ -161,6 +161,8 @@ bool debReleaseIndex::GetIndexes(pkgAcquire *Owner, bool GetAll) const
    for (vector<const debSectionEntry *>::const_iterator I = SectionEntries.begin(); 
 	I != SectionEntries.end(); I++) {
 
+      if((*I)->IsSrc)
+	 continue;
       debTranslationsIndex i = debTranslationsIndex(URI,Dist,(*I)->Section);
       i.GetIndexes(Owner);
    }