|
|
@@ -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;
|
|
|
}
|
|
|
@@ -468,9 +466,6 @@ string debTranslationsIndex::Info(const char *Type) const
|
|
|
/*}}}*/
|
|
|
bool debTranslationsIndex::HasPackages() const /*{{{*/
|
|
|
{
|
|
|
- if(!TranslationsAvailable())
|
|
|
- return false;
|
|
|
-
|
|
|
return FileExists(IndexFile(Language));
|
|
|
}
|
|
|
/*}}}*/
|
|
|
@@ -510,7 +505,7 @@ bool debTranslationsIndex::Merge(pkgCacheGenerator &Gen,OpProgress *Prog) const
|
|
|
{
|
|
|
// Check the translation file, if in use
|
|
|
string TranslationFile = IndexFile(Language);
|
|
|
- if (TranslationsAvailable() && FileExists(TranslationFile))
|
|
|
+ if (FileExists(TranslationFile))
|
|
|
{
|
|
|
FileFd Trans(TranslationFile,FileFd::ReadOnlyGzip);
|
|
|
debListParser TransParser(&Trans);
|