Informational only updates shouldn't be presented as downloadable

This commit is contained in:
Zorg committed 2017-01-01 21:38:08 -05:00
1 parent 0bb3ab51b3
commit ad43a6d0c9
1 file changed
+5 -1
+5 -1
View File
@@ -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];
}