]> git.saurik.com Git - apt.git/commitdiff
do not cleanup .diff/Index files on Hit
authorDavid Kalnischkies <david@kalnischkies.de>
Thu, 29 Oct 2015 11:38:50 +0000 (12:38 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Wed, 4 Nov 2015 17:04:05 +0000 (18:04 +0100)
Git-Dch: Ignore

apt-pkg/acquire-item.cc

index 5fda1439c14f6fdbaba4923c6f6aeb1337512fd0..b5478e9a71ff5346d0304850d5ef47d5c0892d42 100644 (file)
@@ -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;
         }