summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apt-pkg/indexfile.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/indexfile.cc b/apt-pkg/indexfile.cc
index 487a5b920..f0fae907f 100644
--- a/apt-pkg/indexfile.cc
+++ b/apt-pkg/indexfile.cc
@@ -107,9 +107,11 @@ bool pkgIndexFile::CheckLanguageCode(const char * const Lang)
/*}}}*/
// IndexFile::LanguageCode - Return the Language Code /*{{{*/
std::string pkgIndexFile::LanguageCode() {
+APT_IGNORE_DEPRECATED_PUSH
if (TranslationsAvailable() == false)
return "";
return APT::Configuration::getLanguages()[0];
+APT_IGNORE_DEPRECATED_POP
}
/*}}}*/