diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-03-05 03:34:00 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2008-03-05 03:34:00 +0000 |
commit | 51a1ffdf1cb0e523178958270347e3207c237159 (patch) | |
tree | 11bea12b08d890ab5b2e86227c9139cb8f8a0dc8 /Cydia.mm | |
parent | a330619672d9a8e91411f4fbe865417ee062d9da (diff) |
Fixed FW_LEAST and added 'exec' for Installer compatibility.
Diffstat (limited to 'Cydia.mm')
-rw-r--r-- | Cydia.mm | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -184,9 +184,9 @@ unsigned Minor_; unsigned BugFix_; #define FW_LEAST(major, minor, bugfix) \ - (major > Major_ || major == Major_ && \ - (minor > Minor_ || minor == Minor_ && \ - bugfix >= BugFix_)) + (major < Major_ || major == Major_ && \ + (minor < Minor_ || minor == Minor_ && \ + bugfix <= BugFix_)) bool bootstrap_ = false; @@ -3701,8 +3701,8 @@ int main(int argc, char *argv[]) { NSArray *versions = [prover componentsSeparatedByString:@"."]; int count = [versions count]; Major_ = count > 0 ? [[versions objectAtIndex:0] intValue] : 0; - Minor_ = count > 1 ? [[versions objectAtIndex:0] intValue] : 0; - BugFix_ = count > 2 ? [[versions objectAtIndex:0] intValue] : 0; + Minor_ = count > 1 ? [[versions objectAtIndex:1] intValue] : 0; + BugFix_ = count > 2 ? [[versions objectAtIndex:2] intValue] : 0; } } |