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:
parent
d8d8a45d88
commit
a58825d7ea
@ -87,9 +87,8 @@ public class LocalRepoManager {
|
|||||||
this.uriString = uriString;
|
this.uriString = uriString;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void writeIndexPage(String repoAddress) {
|
private String writeFdroidApkToWebroot(String repoAddress) {
|
||||||
ApplicationInfo appInfo;
|
ApplicationInfo appInfo;
|
||||||
|
|
||||||
String fdroidClientURL = "https://f-droid.org/FDroid.apk";
|
String fdroidClientURL = "https://f-droid.org/FDroid.apk";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -102,7 +101,11 @@ public class LocalRepoManager {
|
|||||||
} catch (NameNotFoundException e) {
|
} catch (NameNotFoundException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
return fdroidClientURL;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void writeIndexPage(String repoAddress) {
|
||||||
|
final String fdroidClientURL = writeFdroidApkToWebroot(repoAddress);
|
||||||
try {
|
try {
|
||||||
File indexHtml = new File(webRoot, "index.html");
|
File indexHtml = new File(webRoot, "index.html");
|
||||||
BufferedReader in = new BufferedReader(
|
BufferedReader in = new BufferedReader(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user