Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Commit

Permalink
Update HCPInstallationWorker.m
Browse files Browse the repository at this point in the history
fix when app verlay installation,www content update filed
error is code: -7, description: "Can't copy files from previous release to the new release"
  • Loading branch information
zwwhappy authored Sep 20, 2016
1 parent 02dc6a9 commit ba3276f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ios/Updater/HCPInstallationWorker.m
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,13 @@ - (BOOL)isUpdateValid:(NSError **)error {
}

- (BOOL)copyFilesFromCurrentReleaseToNewRelease:(NSError **)error {
//fix when app verlay installation,www content update filed
//error is code: -7, description: "Can't copy files from previous release to the new release"
if(_currentReleaseFS != nil && _currentReleaseFS.wwwFolder != nil
&& [_currentReleaseFS.wwwFolder.path isEqualToString:_newReleaseFS.wwwFolder.path]) {
return YES;
}

*error = nil;

// just in case check if previous www folder exists; if it does - remove it before copying new stuff
Expand Down

0 comments on commit ba3276f

Please sign in to comment.