]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
fix the remaining lzma calls with xz --format=lzma in the testcases
[apt.git] / apt-pkg / acquire-item.cc
index 545a57d3733ea0e6aa0ae7f8961ad0de7cdd530e..a30e98858adf645763408442fc185ade9a1413e7 100644 (file)
@@ -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);