diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2012-03-06 17:58:16 +0100 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2012-03-06 17:58:16 +0100 |
commit | de31189fca11b7de937a64de90bcc050b76f9181 (patch) | |
tree | ce9c6f63729900dcf0d221c2aaafbfef91f34ed4 /apt-pkg/acquire-item.cc | |
parent | e8184cc38f673a3d86be9268525cf259120c2a9e (diff) |
add Debug::pkgAcqArchive::NoQueue to disable package downloading
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r-- | apt-pkg/acquire-item.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 545a57d37..a30e98858 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1810,7 +1810,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); |