From: Michael Vogt Date: Wed, 29 Oct 2008 08:27:11 +0000 (+0100) Subject: apt-pkg/acquire-item.cc: fixed my incorrect use of flExtension X-Git-Tag: 0.7.21~74 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/589898ae1e46dc56bc037f502e1c405a3e06ed70 apt-pkg/acquire-item.cc: fixed my incorrect use of flExtension --- diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 679f9cee7..cf835f5d5 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -711,13 +711,13 @@ void pkgAcqIndex::Done(string Message,unsigned long Size,string Hash, else Local = true; - string compExt = flExtension(URI(Desc.URI).Path); + string compExt = flExtension(flNotDir(URI(Desc.URI).Path)); const char *decompProg; if(compExt == "bz2") decompProg = "bzip2"; - else if(compExt == ".gz") + else if(compExt == "gz") decompProg = "gzip"; - else if(compExt == "") + else if(compExt == "Packages" || compExt == "Sources") decompProg = "copy"; else { _error->Error("Unsupported extension: %s", compExt.c_str());