Переглянути джерело

do not cleanup .diff/Index files on Hit

Git-Dch: Ignore
David Kalnischkies 10 роки тому
батько
коміт
3d1e34b0be
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      apt-pkg/acquire-item.cc

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

@@ -1114,6 +1114,9 @@ void pkgAcqMetaBase::QueueIndexes(bool const verify)			/*{{{*/
 	 if (filename.empty() == false)
 	 {
 	    new NoActionItem(Owner, *Target, filename);
+	    std::string const idxfilename = GetFinalFileNameFromURI(Target->URI + ".diff/Index");
+	    if (FileExists(idxfilename))
+	       new NoActionItem(Owner, *Target, idxfilename);
 	    continue;
 	 }