Przeglądaj źródła

apt-pkg/deb/debindexfile.cc: kill off another TranslationsAvailable() usage that is not needed

Michael Vogt 15 lat temu
rodzic
commit
e4d30d3fdc
1 zmienionych plików z 4 dodań i 6 usunięć
  1. 4 6
      apt-pkg/deb/debindexfile.cc

+ 4 - 6
apt-pkg/deb/debindexfile.cc

@@ -423,12 +423,10 @@ string debTranslationsIndex::IndexURI(const char *Type) const
 /* */
 bool debTranslationsIndex::GetIndexes(pkgAcquire *Owner) const
 {
-   if (TranslationsAvailable()) {
-     string const TranslationFile = string("Translation-").append(Language);
-     new pkgAcqIndexTrans(Owner, IndexURI(Language),
-			  Info(TranslationFile.c_str()),
-			  TranslationFile);
-   }
+   string const TranslationFile = string("Translation-").append(Language);
+   new pkgAcqIndexTrans(Owner, IndexURI(Language),
+                        Info(TranslationFile.c_str()),
+                        TranslationFile);
 
    return true;
 }