mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
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:
1 parent
cd7ef45be0
commit
dedd63232a
1 file changed
+1
-1
+1
-1
@@ -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]];
|
||||
|
||||
Reference in new issue
Block a user