summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-11-27 23:49:15 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-27 23:49:15 +0100
commit668ae33adc17cdc445218be490604d5f900ac9f3 (patch)
treeb1fd3c6fc73a760da188e0202afb2cee6a0953a4
parent0300f0077af832e87beb290f26b13404cab81fd3 (diff)
ignore deprecated method calls in deprecated method
Git-Dch: Ignore
-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
}
/*}}}*/