Compare commits

..

3 commits

Author SHA1 Message Date
710dc3fd05
ADdd debug 2024-10-24 14:34:33 +02:00
289523febf
Remove whatever 2024-10-24 14:34:01 +02:00
76fc16ca19
Remove nag 2024-10-24 14:33:45 +02:00
3 changed files with 3 additions and 3 deletions

View file

@ -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
*/ */
public CompletableFuture<File> downloadAndVerify(String url, String sha256hex); 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
*/ */
public CompletableFuture<Void> install(File source, File destination); CompletableFuture<Void> install(File source, File destination);
} }

View file

@ -20,7 +20,6 @@ public class ConstantEnvironment implements Environment {
@Override @Override
public String getChannel() { public String getChannel() {
// TODO Auto-generated method stub
return channel; return channel;
} }

View file

@ -60,6 +60,7 @@ 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