Преглед изворни кода

* merged with the latest ddtp branch fixes

Michael Vogt пре 20 година
родитељ
комит
b28fffc282
2 измењених фајлова са 3 додато и 0 уклоњено
  1. 2 0
      apt-pkg/deb/debmetaindex.cc
  2. 1 0
      debian/changelog

+ 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(); 
    for (vector<const debSectionEntry *>::const_iterator I = SectionEntries.begin(); 
 	I != SectionEntries.end(); I++) {
 	I != SectionEntries.end(); I++) {
 
 
+      if((*I)->IsSrc)
+	 continue;
       debTranslationsIndex i = debTranslationsIndex(URI,Dist,(*I)->Section);
       debTranslationsIndex i = debTranslationsIndex(URI,Dist,(*I)->Section);
       i.GetIndexes(Owner);
       i.GetIndexes(Owner);
    }
    }

+ 1 - 0
debian/changelog

@@ -2,6 +2,7 @@ apt (0.6.44.2exp2) experimental; urgency=low
 
 
   * fix apt-get dist-upgrade
   * fix apt-get dist-upgrade
   * fix warning if no /var/lib/apt/extended_states is present
   * fix warning if no /var/lib/apt/extended_states is present
+  * don't download Translations for deb-src sources.list lines
 
 
  -- Michael Vogt <mvo@debian.org>  Tue, 25 Jul 2006 15:12:05 +0200
  -- Michael Vogt <mvo@debian.org>  Tue, 25 Jul 2006 15:12:05 +0200