split out FDroid.apk copying into its own private method

This is at the request of pserwylo, I think its unecessary.
This commit is contained in:
Hans-Christoph Steiner 2014-05-06 19:50:56 -04:00
parent d8d8a45d88
commit a58825d7ea

View File

@ -87,9 +87,8 @@ public class LocalRepoManager {
this.uriString = uriString;
}
public void writeIndexPage(String repoAddress) {
private String writeFdroidApkToWebroot(String repoAddress) {
ApplicationInfo appInfo;
String fdroidClientURL = "https://f-droid.org/FDroid.apk";
try {
@ -102,7 +101,11 @@ public class LocalRepoManager {
} catch (NameNotFoundException e) {
e.printStackTrace();
}
return fdroidClientURL;
}
public void writeIndexPage(String repoAddress) {
final String fdroidClientURL = writeFdroidApkToWebroot(repoAddress);
try {
File indexHtml = new File(webRoot, "index.html");
BufferedReader in = new BufferedReader(