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
@@ -676,6 +676,9 @@ public abstract class Getdown extends Thread
// download the patch files...
setStep(Step.DOWNLOAD);
download(list);
// rename the patch files...
install(list);
// and apply them...
setStep(Step.PATCH);
@@ -710,6 +713,17 @@ public abstract class Getdown extends Thread
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.
*/