]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-item.cc
Do not download Packages/Sources files on I-M-S hit of the Release file
[apt.git] / apt-pkg / acquire-item.cc
index 5bfc72adf245e4923f6ca2bed478912843855339..9d9aec4d0f51a80981d29fe717ee1706e92b11ba 100644 (file)
@@ -1750,8 +1750,14 @@ void pkgAcqMetaIndex::AuthDone(string Message)                           /*{{{*/
    }
 #endif
 
-   // Download further indexes with verification
-   QueueIndexes(true);
+   // Download further indexes with verification 
+   //
+   // we do not need to download indexfiles if the Release file has not
+   // changed because without a changed release file there are no new hashes
+   // and we ensure that the repository is always "complete" (i.e. all
+   // that is in the release file is downloaded)
+   if(IMSHit == false)
+      QueueIndexes(true);
 
 #if 0
    // is it a clearsigned MetaIndex file?