]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
Advanced documentation for 'apt-get install' command, mentioned upgrading possibility.
[apt.git] / apt-pkg / acquire-item.cc
index cf835f5d59ad33d014ba6ecbddbd09ba0a81d703..ae8ff220594e311bc0909f9a8f50a7cfb5c4e48a 100644 (file)
@@ -717,7 +717,8 @@ void pkgAcqIndex::Done(string Message,unsigned long Size,string Hash,
       decompProg = "bzip2";
    else if(compExt == "gz") 
       decompProg = "gzip";
-   else if(compExt == "Packages" || compExt == "Sources")
+   // flExtensions returns the full name if no extension is found
+   else if(compExt == flNotDir(URI(Desc.URI).Path))
       decompProg = "copy";
    else {
       _error->Error("Unsupported extension: %s", compExt.c_str());