Browse Source

strip the extension of the translation file before storing it in the list
(regression from compression rewrite; found by Steve McIntyre, thanks!)

David Kalnischkies 14 years ago
parent
commit
4e86b003ba
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apt-pkg/cdrom.cc

+ 1 - 0
apt-pkg/cdrom.cc

@@ -136,6 +136,7 @@ bool pkgCdrom::FindPackages(string CD,
 	    {
 	    {
 	       if (_config->FindB("Debug::aptcdrom",false) == true)
 	       if (_config->FindB("Debug::aptcdrom",false) == true)
 		  std::clog << "Found translation " << Dir->d_name << " in " << CD << "i18n/" << std::endl;
 		  std::clog << "Found translation " << Dir->d_name << " in " << CD << "i18n/" << std::endl;
+	       file.erase(file.size() - fileext.size());
 	       TransList.push_back(CD + "i18n/" + file);
 	       TransList.push_back(CD + "i18n/" + file);
 	       break;
 	       break;
 	    }
 	    }