mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-28 05:14:34 +00:00
Killed off SUExpectsDSASignatureKey.
This commit is contained in:
1 parent
1d3ab8d6bb
commit
588cad8d91
3 files changed
+1
-8
No files matched your search
@@ -20,7 +20,6 @@ extern NSString *SUShowReleaseNotesKey;
|
||||
extern NSString *SUSkippedVersionKey;
|
||||
extern NSString *SUScheduledCheckIntervalKey;
|
||||
extern NSString *SULastCheckTimeKey;
|
||||
extern NSString *SUExpectsDSASignatureKey;
|
||||
extern NSString *SUPublicDSAKeyKey;
|
||||
extern NSString *SUPublicDSAKeyFileKey;
|
||||
extern NSString *SUAutomaticallyUpdateKey;
|
||||
|
||||
+1
-3
@@ -98,11 +98,9 @@
|
||||
|
||||
- (BOOL)allowsAutomaticUpdates
|
||||
{
|
||||
if (![[host objectForInfoDictionaryKey:SUExpectsDSASignatureKey] boolValue])
|
||||
return NO; // Automatic updating requires DSA-signed updates
|
||||
if (![host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey])
|
||||
return YES; // defaults to YES
|
||||
return [[host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] boolValue];
|
||||
return [host boolForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey];
|
||||
}
|
||||
|
||||
- (void)awakeFromNib
|
||||
|
||||
@@ -270,10 +270,6 @@ static NSString *SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaultsObserv
|
||||
if ([host objectForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] && [host boolForInfoDictionaryKey:SUAllowsAutomaticUpdatesKey] == NO)
|
||||
return NO;
|
||||
|
||||
// If we're not using DSA signatures, we aren't going to trust any updates automatically.
|
||||
if ([host boolForInfoDictionaryKey:SUExpectsDSASignatureKey] != YES)
|
||||
return NO;
|
||||
|
||||
// Otherwise, automatically downloading updates is allowed. Does the user want it?
|
||||
return [host boolForUserDefaultsKey:SUAutomaticallyUpdateKey];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user