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

Commit

Permalink
Update InstallationWorker.java
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 87f21ab commit 02dc6a9
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ private boolean init() {
* @return <code>true</code> if files are copied; <code>false</code> - 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());
Expand Down Expand Up @@ -241,4 +247,4 @@ public WorkerEvent result() {
}

// endregion
}
}

0 comments on commit 02dc6a9

Please sign in to comment.