From c9bd13213b6ff387c95928bb67efadcb4a3d2462 Mon Sep 17 00:00:00 2001 From: Andy Matuschak Date: Tue, 15 Jul 2008 21:36:48 -0700 Subject: [PATCH] Fixes 246469 This should fix the DSA-signing-on-tar-gzs issue. Sparkle now doesn't let NSURLDownload extract .gzips for us, which was making the data being verified different from the data being signed. --- SUBasicUpdateDriver.m | 6 ++++++ Sparkle.xcodeproj/project.pbxproj | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/SUBasicUpdateDriver.m b/SUBasicUpdateDriver.m index eb2990b5..769358c9 100644 --- a/SUBasicUpdateDriver.m +++ b/SUBasicUpdateDriver.m @@ -161,6 +161,12 @@ [self abortUpdateWithError:[NSError errorWithDomain:SUSparkleErrorDomain code:SURelaunchError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:SULocalizedString(@"An error occurred while downloading the update. Please try again later.", nil), NSLocalizedDescriptionKey, [error localizedDescription], NSLocalizedFailureReasonErrorKey, nil]]]; } +- (BOOL)download:(NSURLDownload *)download shouldDecodeSourceDataOfMIMEType:(NSString *)encodingType +{ + if ([encodingType isEqualToString:@"application/gzip"]) return NO; + return YES; +} + - (void)extractUpdate { // DSA verification, if activated by the developer diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index 4169c0df..97849720 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -125,7 +125,7 @@ isa = PBXContainerItemProxy; containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; proxyType = 1; - remoteGlobalIDString = 8DC2EF4F0486A6940098B216 /* Sparkle */; + remoteGlobalIDString = 8DC2EF4F0486A6940098B216; remoteInfo = Sparkle; }; DAAEFD4F0DA572460051E0D0 /* PBXContainerItemProxy */ = {