diff --git a/Sparkle/SUHost.m b/Sparkle/SUHost.m index 549a7bbe..6ce40fbb 100644 --- a/Sparkle/SUHost.m +++ b/Sparkle/SUHost.m @@ -64,13 +64,14 @@ - (BOOL)allowsAutomaticUpdates { - // Can we automatically update in the background without bugging the user (e.g, with a administrator password prompt)? - BOOL isWritableAtBundle = [[NSFileManager defaultManager] isWritableFileAtPath:self.bundlePath]; - // Does the developer want us to disable automatic updates? NSNumber *developerAllowsAutomaticUpdates = [self objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey]; + if (developerAllowsAutomaticUpdates != nil && !developerAllowsAutomaticUpdates.boolValue) { + return NO; + } - return isWritableAtBundle && (developerAllowsAutomaticUpdates == nil || developerAllowsAutomaticUpdates.boolValue); + // Can we automatically update in the background without bugging the user (e.g, with a administrator password prompt)? + return [[NSFileManager defaultManager] isWritableFileAtPath:self.bundlePath]; } - (NSString *)appCachePath