]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/acquire-item.cc: do not hardcode "Packages" or "Sources" in the (generic...
authorMichael Vogt <egon@tas>
Wed, 29 Oct 2008 08:31:53 +0000 (09:31 +0100)
committerMichael Vogt <egon@tas>
Wed, 29 Oct 2008 08:31:53 +0000 (09:31 +0100)
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());