diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-17 06:42:01 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-02-17 06:42:01 -0800 |
commit | 50c1653e448725bde0680fe7cda0982d1f9e4029 (patch) | |
tree | c0666e6ecaf8e7b943bfaa8f20e89e2490ef5ad0 | |
parent | b1ca831d87989d531244c62b6e10631e54a42bfd (diff) |
ConfirmationController cancel doesn't work for ReInstall.
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index e3167c5..77fffa8 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 { |