Fixed a dumb bug in newVersionAvailable that would make Sparkle think the new version couldn't run on the user's system when the user has exactly the system required. Thanks, Robbie Hanson.

This commit is contained in:
andym committed 2007-11-01 17:59:01 +00:00
1 parent cd7ef45be0
commit dedd63232a
1 file changed
+1 -1
+1 -1
View File
@@ -302,7 +302,7 @@
// Override this to change the new version comparison logic!
- (BOOL)newVersionAvailable
{
BOOL canRunOnCurrentSystem = SUStandardVersionComparison([updateItem minimumSystemVersion], [self systemVersionString]);
BOOL canRunOnCurrentSystem = (SUStandardVersionComparison([updateItem minimumSystemVersion], [self systemVersionString]) != NSOrderedAscending);
return (canRunOnCurrentSystem && (SUStandardVersionComparison([updateItem fileVersion], SUHostAppVersion()) == NSOrderedAscending));
// Want straight-up string comparison like Sparkle 1.0b3 and earlier? Uncomment the line below and comment the one above.
// return ![SUHostAppVersion() isEqualToString:[updateItem fileVersion]];