From: Michael Vogt Date: Wed, 29 Oct 2008 08:31:53 +0000 (+0100) Subject: apt-pkg/acquire-item.cc: do not hardcode "Packages" or "Sources" in the (generic... X-Git-Tag: 0.7.21~73 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/708ead3a44ac2f5ea625343c5d1b3404cca8a481 apt-pkg/acquire-item.cc: do not hardcode "Packages" or "Sources" in the (generic) acquire-item.cc code --- diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index cf835f5d5..ae8ff2205 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -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());