diff --git a/src/android/src/com/nordnetab/chcp/main/updater/InstallationWorker.java b/src/android/src/com/nordnetab/chcp/main/updater/InstallationWorker.java index 970eedac..049c186d 100644 --- a/src/android/src/com/nordnetab/chcp/main/updater/InstallationWorker.java +++ b/src/android/src/com/nordnetab/chcp/main/updater/InstallationWorker.java @@ -129,6 +129,12 @@ private boolean init() { * @return true if files are copied; false - otherwise. */ private boolean copyFilesFromCurrentReleaseToNewRelease() { + //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 != null && currentReleaseFS.getWwwFolder() != null + && currentReleaseFS.getWwwFolder().equals(newReleaseFS.getWwwFolder())) { + return true; + } boolean result = true; final File currentWwwFolder = new File(currentReleaseFS.getWwwFolder()); final File newWwwFolder = new File(newReleaseFS.getWwwFolder()); @@ -241,4 +247,4 @@ public WorkerEvent result() { } // endregion -} \ No newline at end of file +} diff --git a/src/ios/Updater/HCPInstallationWorker.m b/src/ios/Updater/HCPInstallationWorker.m index 5a3aa967..6754eb93 100644 --- a/src/ios/Updater/HCPInstallationWorker.m +++ b/src/ios/Updater/HCPInstallationWorker.m @@ -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