]> git.saurik.com Git - apt.git/commitdiff
strip the extension of the translation file before storing it in the list
authorDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 10 Dec 2011 23:41:50 +0000 (00:41 +0100)
committerDavid Kalnischkies <kalnischkies@gmail.com>
Sat, 10 Dec 2011 23:41:50 +0000 (00:41 +0100)
(regression from compression rewrite; found by Steve McIntyre, thanks!)

apt-pkg/cdrom.cc

index 2c40c731d8491de35c3ff858139e0f656381392e..026094a6eb7d7752c44e061a037f2ce3645dfbe4 100644 (file)
@@ -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;
            }