From: David Kalnischkies Date: Thu, 9 Jul 2015 10:01:29 +0000 (+0200) Subject: skip .diff/Index acquire if Release file was a hit X-Git-Tag: 1.1.exp9~105 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/1196da2e7b620ed7d1aed717a85c4879945ea699?hp=3b3028467ceccca0b73a8f53051c0fa4de313111 skip .diff/Index acquire if Release file was a hit 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 --- diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 864b93188..38f753cbb 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -977,6 +977,12 @@ void pkgAcqMetaBase::QueueIndexes(bool const verify) /*{{{*/ 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