diff options
author | Dustin L. Howett <dustin@howett.net> | 2011-02-19 05:02:44 -0500 |
---|---|---|
committer | Dustin L. Howett <dustin@howett.net> | 2011-02-19 05:02:44 -0500 |
commit | ccfa7494e16dc4c19f52fb9f4b137182764e279a (patch) | |
tree | 89204165a8f3a918c4fe7052137ae15a9674157b /MobileCydia.mm | |
parent | 4bff334147f72d33d63fd396fb00922969821308 (diff) |
Don't display "Ignore Upgrades" if the package isn't installed.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 25b3a7e..c5b0bab 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 { |