]> git.saurik.com Git - cydia.git/commitdiff
Don't display "Ignore Upgrades" if the package isn't installed.
authorDustin L. Howett <dustin@howett.net>
Sat, 19 Feb 2011 10:02:44 +0000 (05:02 -0500)
committerDustin L. Howett <dustin@howett.net>
Sat, 19 Feb 2011 10:02:44 +0000 (05:02 -0500)
MobileCydia.mm

index 25b3a7ed6de0e4c8068344e63b3c04f68aff9a88..c5b0babb1269bc1b8010e5ec5c0c6ca3e6fd071f 100644 (file)
@@ -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 {