HCoop
/
ntk
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85c26e8
)
apt-pkg/deb/debindexfile.cc: remove tests for TranslationsAvailable() as this will...
author
Michael Vogt
<michael.vogt@ubuntu.com>
Thu, 9 Jun 2011 11:24:36 +0000
(13:24 +0200)
committer
Michael Vogt
<michael.vogt@ubuntu.com>
Thu, 9 Jun 2011 11:24:36 +0000
(13:24 +0200)
apt-pkg/deb/debindexfile.cc
patch
|
blob
|
blame
|
history
diff --git
a/apt-pkg/deb/debindexfile.cc
b/apt-pkg/deb/debindexfile.cc
index
1e8c040
..
1d828c1
100644
(file)
--- a/
apt-pkg/deb/debindexfile.cc
+++ b/
apt-pkg/deb/debindexfile.cc
@@
-468,9
+468,6
@@
string debTranslationsIndex::Info(const char *Type) const
/*}}}*/
bool debTranslationsIndex::HasPackages() const /*{{{*/
{
- if(!TranslationsAvailable())
- return false;
-
return FileExists(IndexFile(Language));
}
/*}}}*/
@@
-510,7
+507,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);