From: Jay Freeman (saurik) Date: Thu, 17 Feb 2011 14:42:01 +0000 (-0800) Subject: ConfirmationController cancel doesn't work for ReInstall. X-Git-Tag: v1.1.0%b1~329 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/50c1653e448725bde0680fe7cda0982d1f9e4029 ConfirmationController cancel doesn't work for ReInstall. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index e3167c5f..77fffa87 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -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 {