]> git.saurik.com Git - cydia.git/commitdiff
ConfirmationController cancel doesn't work for ReInstall.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 17 Feb 2011 14:42:01 +0000 (06:42 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 17 Feb 2011 14:42:01 +0000 (06:42 -0800)
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 {