Skip to content

Commit

Permalink
[DexPatch] installPatch 异常直接抛出来
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongcang committed Nov 15, 2017
1 parent 93eceb2 commit 0af8b09
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

public class DexPatchUpdater {

public static void installHotPatch(String updateVersion,List<UpdateInfo.Item> updateList, File patchFile,IDexpatchMonitor monitor) {
public static void installHotPatch(String updateVersion,List<UpdateInfo.Item> updateList, File patchFile,IDexpatchMonitor monitor) throws Exception{
if (null == updateList || updateList.isEmpty()){
return;
}
Expand All @@ -50,6 +50,7 @@ public static void installHotPatch(String updateVersion,List<UpdateInfo.Item> up
AtlasHotPatchManager.getInstance().installHotFixPatch(updateVersion, updateBundles);
} catch (IOException e) {
e.printStackTrace();
throw e;
} finally {
IOUtil.quietClose(patchZip);
}
Expand All @@ -65,7 +66,7 @@ public static void installHotPatch(String updateVersion,List<UpdateInfo.Item> up
}
}

public static void installColdPatch(UpdateInfo updateInfo, File patchFile,IDexpatchMonitor monitor) {
public static void installColdPatch(UpdateInfo updateInfo, File patchFile,IDexpatchMonitor monitor) throws Exception{
if (null == updateInfo.updateBundles || updateInfo.updateBundles.isEmpty()){
return;
}
Expand Down Expand Up @@ -95,6 +96,7 @@ public static void installColdPatch(UpdateInfo updateInfo, File patchFile,IDexpa
patchInstaller.install();
} catch (Exception e) {
e.printStackTrace();
throw e;
} finally {
PatchCleaner.clearUpdatePath(updateInfo.workDir.getAbsolutePath());
}
Expand Down

0 comments on commit 0af8b09

Please sign in to comment.