summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/debindexfile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/deb/debindexfile.cc')
-rw-r--r--apt-pkg/deb/debindexfile.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc
index b57493b9e..5510ad161 100644
--- a/apt-pkg/deb/debindexfile.cc
+++ b/apt-pkg/deb/debindexfile.cc
@@ -401,6 +401,14 @@ string debTranslationsIndex::Info(const char *Type) const
return Info;
}
/*}}}*/
+bool debTranslationsIndex::HasPackages() const
+{
+ if(!UseTranslation())
+ return false;
+
+ return FileExists(IndexFile(LanguageCode().c_str()));
+}
+
// TranslationsIndex::Exists - Check if the index is available /*{{{*/
// ---------------------------------------------------------------------
/* */