summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-06-09 13:30:08 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-06-09 13:30:08 +0200
commite4d30d3fdc11a5af7fb04b5f6bb65e5f47f76810 (patch)
tree944dc4afc08c88f00ebe242a775cc66515a6a334
parent64c2bdc9cfa77d05143aec6d744a3b65b4bb6cd7 (diff)
apt-pkg/deb/debindexfile.cc: kill off another TranslationsAvailable() usage that is not needed
-rw-r--r--apt-pkg/deb/debindexfile.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc
index 1d828c144..c9e7f1176 100644
--- a/apt-pkg/deb/debindexfile.cc
+++ b/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;
}