Skip to content

Commit

Permalink
Merge pull request #175 from Squirrel/fix-pruning
Browse files Browse the repository at this point in the history
Don't prune if we've already downloaded updates.
  • Loading branch information
joshaber authored Jun 12, 2016
2 parents 37cd028 + 7dffc4b commit 9ebfd39
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Squirrel/SQRLUpdater.m
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ - (RACSignal *)performHousekeeping {
- (RACSignal *)pruneUpdateDirectories {
return [[[RACSignal
defer:^{
// If we already have updates downloaded we don't wanna prune them.
if (self.state == SQRLUpdaterStateAwaitingRelaunch) return [RACSignal empty];

SQRLDirectoryManager *directoryManager = [[SQRLDirectoryManager alloc] initWithApplicationIdentifier:SQRLShipItLauncher.shipItJobLabel];
return [directoryManager storageURL];
}]
Expand Down

0 comments on commit 9ebfd39

Please sign in to comment.