From: Dustin L. Howett Date: Sat, 19 Feb 2011 10:02:44 +0000 (-0500) Subject: Don't display "Ignore Upgrades" if the package isn't installed. X-Git-Tag: v1.1.0%b1~305 X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/ccfa7494e16dc4c19f52fb9f4b137182764e279a Don't display "Ignore Upgrades" if the package isn't installed. --- diff --git a/MobileCydia.mm b/MobileCydia.mm index 25b3a7ed..c5b0babb 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -7600,7 +7600,10 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { if (package_ == nil) return 0; - return 2; + if ([package_ installed] == nil) + return 1; + else + return 2; } - (NSString *) tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {