- change the internal handling of Extensions in pkgAcqIndex
[ntk/apt.git] / apt-pkg / aptconfiguration.cc
index 52f5407..e97ebfe 100644 (file)
@@ -90,6 +90,14 @@ const Configuration::getCompressionTypes(bool const &Cached) {
                types.push_back(Types->Tag);
        }
 
+       // add the special "uncompressed" type
+       if (std::find(types.begin(), types.end(), "uncompressed") == types.end())
+       {
+               string const uncompr = _config->FindFile("Dir::Bin::uncompressed", "");
+               if (uncompr.empty() == true || FileExists(uncompr) == true)
+                       types.push_back("uncompressed");
+       }
+
        return types;
 }
                                                                        /*}}}*/