Преглед изворни кода

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 година
родитељ
комит
4e86b003ba
1 измењених фајлова са 1 додато и 0 уклоњено
  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)
 		  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;
 	    }