From: David Kalnischkies Date: Sat, 10 Dec 2011 23:41:50 +0000 (+0100) Subject: strip the extension of the translation file before storing it in the list X-Git-Tag: 0.9.0~40^2~15 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/4e86b003bad2e6146c9fe8be492bdc9d212bcd74?hp=76a763e1f842543a53bc28db681d963d0fc4ae12 strip the extension of the translation file before storing it in the list (regression from compression rewrite; found by Steve McIntyre, thanks!) --- diff --git a/apt-pkg/cdrom.cc b/apt-pkg/cdrom.cc index 2c40c731d..026094a6e 100644 --- a/apt-pkg/cdrom.cc +++ b/apt-pkg/cdrom.cc @@ -136,6 +136,7 @@ bool pkgCdrom::FindPackages(string CD, { if (_config->FindB("Debug::aptcdrom",false) == true) std::clog << "Found translation " << Dir->d_name << " in " << CD << "i18n/" << std::endl; + file.erase(file.size() - fileext.size()); TransList.push_back(CD + "i18n/" + file); break; }