]> git.saurik.com Git - cydia.git/blobdiff - MobileCydia.mm
ConfirmationController cancel doesn't work for ReInstall.
[cydia.git] / MobileCydia.mm
index e3167c5feffbb9cd1999fa54bef9931e85e30943..77fffa87aaefe5bbb5322402d6b166fd4233b62e 100644 (file)
@@ -3488,12 +3488,11 @@ static NSString *Warning_;
     delete resolver_;
     resolver_ = new pkgProblemResolver(cache_);
 
-    for (pkgCache::PkgIterator iterator(cache_->PkgBegin()); !iterator.end(); ++iterator) {
-        if (!cache_[iterator].Keep()) {
+    for (pkgCache::PkgIterator iterator(cache_->PkgBegin()); !iterator.end(); ++iterator)
+        if (!cache_[iterator].Keep())
             cache_->MarkKeep(iterator, false);
+        else if ((cache_[iterator].iFlags & pkgDepCache::ReInstall) != 0)
             cache_->SetReInstall(iterator, false);
-        }
-    }
 } }
 
 - (void) configure {