From dedd63232a5101e8dcd8c34326e83846e54a18b1 Mon Sep 17 00:00:00 2001 From: andym Date: Thu, 1 Nov 2007 17:59:01 +0000 Subject: [PATCH] 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. --- SUUpdater.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SUUpdater.m b/SUUpdater.m index 90c55f37..a4d63b50 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -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]];