From: Michael Vogt Date: Tue, 13 Mar 2012 13:02:12 +0000 (+0100) Subject: cherry pick 2217.1.39 X-Git-Tag: 0.9.13.exp1ubuntu1~90^2~1 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/09566c643b2382b8d733c532c76f3c884837a6c7?ds=sidebyside;hp=--cc cherry pick 2217.1.39 --- 09566c643b2382b8d733c532c76f3c884837a6c7 diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 6e6c35381..9ea1519f1 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1832,7 +1832,18 @@ bool pkgAcqArchive::QueueNext() else PartialSize = Buf.st_size; } - + + // Disables download of archives - useful if no real installation follows, + // e.g. if we are just interested in proposed installation order + if (_config->FindB("Debug::pkgAcqArchive::NoQueue", false) == true) + { + Complete = true; + Local = true; + Status = StatDone; + StoreFilename = DestFile = FinalFile; + return true; + } + // Create the item Local = false; Desc.URI = Index->ArchiveURI(PkgFile);