diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-12-11 00:41:50 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-12-11 00:41:50 +0100 |
commit | 4e86b003bad2e6146c9fe8be492bdc9d212bcd74 (patch) | |
tree | 1c5fbceeaff9a5bf24f6cf64cddfbd2321583bd5 /apt-pkg | |
parent | 76a763e1f842543a53bc28db681d963d0fc4ae12 (diff) |
strip the extension of the translation file before storing it in the list
(regression from compression rewrite; found by Steve McIntyre, thanks!)
Diffstat (limited to 'apt-pkg')
-rw-r--r-- | apt-pkg/cdrom.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |