]> git.saurik.com Git - apt.git/commitdiff
skip .diff/Index acquire if Release file was a hit
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 9 Jul 2015 10:01:29 +0000 (12:01 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Mon, 10 Aug 2015 15:27:17 +0000 (17:27 +0200)
QuereURI already skips the aquire of the real file in such a case, but
it can't detect pdiffs this way. Those already have a handling if the
file wasn't changed in between two Release files, so we just add an
other check for a Release file hit here, too.

Git-Dch: Ignore

apt-pkg/acquire-item.cc

index 864b9318819fce5f4b29b6ae2d4e06ac958ec5b9..38f753cbb06078bb9ab86ee7ec1ac562b1accd08 100644 (file)
@@ -977,6 +977,12 @@ void pkgAcqMetaBase::QueueIndexes(bool const verify)                       /*{{{*/
                  continue;
               }
            }
                  continue;
               }
            }
+           else if (TransactionManager->IMSHit == true)
+           {
+              // we have the file already, no point in trying to acquire it again
+              new NoActionItem(Owner, *Target);
+              continue;
+           }
         }
         else
            trypdiff = false; // no file to patch
         }
         else
            trypdiff = false; // no file to patch