install(Resources) method created and called from update() method, below calling download().
This commit is contained in:
Leandro Quiroga
2018-12-14 16:22:39 -03:00
committed by GitHub
parent 9402d7c900
commit 28b779f0f8
@@ -677,6 +677,9 @@ public abstract class Getdown extends Thread
setStep(Step.DOWNLOAD); setStep(Step.DOWNLOAD);
download(list); download(list);
// rename the patch files...
install(list);
// and apply them... // and apply them...
setStep(Step.PATCH); setStep(Step.PATCH);
updateStatus("m.patching"); updateStatus("m.patching");
@@ -710,6 +713,17 @@ public abstract class Getdown extends Thread
readConfig(false); readConfig(false);
} }
/**
* Installs resources
*/
private void install (List<Resource> resources)
throws IOException
{
for (Resource rsrc : resources) {
rsrc.install();
}
}
/** /**
* Called if the application is determined to require resource downloads. * Called if the application is determined to require resource downloads.
*/ */