Compare commits
No commits in common. "710dc3fd052776d2ae0a6bcd545cccf12e2f08fb" and "2c8b88ca523be989efa83f60fd7b291cac56cd7d" have entirely different histories.
710dc3fd05
...
2c8b88ca52
3 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ public interface Downloader {
|
||||||
* @param sha256hex
|
* @param sha256hex
|
||||||
* @return a future which can throw ioexception or signatureexception
|
* @return a future which can throw ioexception or signatureexception
|
||||||
*/
|
*/
|
||||||
CompletableFuture<File> downloadAndVerify(String url, String sha256hex);
|
public CompletableFuture<File> downloadAndVerify(String url, String sha256hex);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* moves source into destination
|
* moves source into destination
|
||||||
|
@ -18,5 +18,5 @@ public interface Downloader {
|
||||||
* @param destination
|
* @param destination
|
||||||
* @return a future which can throw ioexception
|
* @return a future which can throw ioexception
|
||||||
*/
|
*/
|
||||||
CompletableFuture<Void> install(File source, File destination);
|
public CompletableFuture<Void> install(File source, File destination);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ public class ConstantEnvironment implements Environment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getChannel() {
|
public String getChannel() {
|
||||||
|
// TODO Auto-generated method stub
|
||||||
return channel;
|
return channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,6 @@ public class GiteaMetadataDAO implements MetadataDAO {
|
||||||
|
|
||||||
|
|
||||||
private CompletableFuture<HttpResponse<String>> makeRequest(String url) {
|
private CompletableFuture<HttpResponse<String>> makeRequest(String url) {
|
||||||
System.out.println("Request: " + url);
|
|
||||||
HttpRequest request = HttpRequest.newBuilder()
|
HttpRequest request = HttpRequest.newBuilder()
|
||||||
.uri(URI.create(url))
|
.uri(URI.create(url))
|
||||||
.header("User-Agent", "ju/1") // jar updater v1
|
.header("User-Agent", "ju/1") // jar updater v1
|
||||||
|
|
Loading…
Reference in a new issue