Просмотр исходного кода

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
David Kalnischkies лет назад: 11
Родитель
Сommit
1196da2e7b
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      apt-pkg/acquire-item.cc

+ 6 - 0
apt-pkg/acquire-item.cc

@@ -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
 	 else
 	    trypdiff = false; // no file to patch
 	    trypdiff = false; // no file to patch