From ad43a6d0c9de8f462f244cfe6007d468f4d4bc2e Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 1 Jan 2017 21:38:08 -0500 Subject: [PATCH] Informational only updates shouldn't be presented as downloadable --- Sparkle/SPUUIBasedUpdateDriver.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sparkle/SPUUIBasedUpdateDriver.m b/Sparkle/SPUUIBasedUpdateDriver.m index b58802ce..32005091 100644 --- a/Sparkle/SPUUIBasedUpdateDriver.m +++ b/Sparkle/SPUUIBasedUpdateDriver.m @@ -16,6 +16,7 @@ #import "SUErrors.h" #import "SPUURLDownload.h" #import "SPUDownloadData.h" +#import "SPUDownloadedUpdate.h" #ifdef _APPKITDEFINES_H #error This is a "core" class and should NOT import AppKit @@ -90,7 +91,10 @@ - (void)resumeDownloadedUpdate:(SPUDownloadedUpdate *)downloadedUpdate completion:(SPUUpdateDriverCompletion)completionBlock { - self.resumingDownloadedUpdate = YES; + // Informational downloads shouldn't be presented as updates to be downloaded + if (!downloadedUpdate.updateItem.isInformationOnlyUpdate) { + self.resumingDownloadedUpdate = YES; + } [self.coreDriver resumeDownloadedUpdate:downloadedUpdate completion:completionBlock]; }