From ccfa7494e16dc4c19f52fb9f4b137182764e279a Mon Sep 17 00:00:00 2001 From: "Dustin L. Howett" Date: Sat, 19 Feb 2011 05:02:44 -0500 Subject: [PATCH] Don't display "Ignore Upgrades" if the package isn't installed. --- MobileCydia.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.45.2