]> git.saurik.com Git - apt.git/commitdiff
cherry pick 2217.1.39
authorMichael Vogt <michael.vogt@ubuntu.com>
Tue, 13 Mar 2012 13:02:12 +0000 (14:02 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Tue, 13 Mar 2012 13:02:12 +0000 (14:02 +0100)
apt-pkg/acquire-item.cc

index 6e6c35381d977aed09d861f76f086a2ae329119f..9ea1519f1d21d8609ff84d332d7d23d6aa69826f 100644 (file)
@@ -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);