libfetchers: asyncify downloadFile, downloadTarball

Change-Id: I6f6e5b61667efeda8c575ae1f3bd87ee75fb9f9e
This commit is contained in:
eldritch horrors
2025-02-08 17:26:19 +00:00
parent 60f391ef3d
commit 8bfd2d4bb1
8 changed files with 61 additions and 37 deletions
+2 -2
View File
@@ -2798,8 +2798,8 @@ try {
if (EvalSettings::isPseudoUrl(value)) {
try {
auto storePath = fetchers::downloadTarball(
store, EvalSettings::resolvePseudoUrl(value), "source", false).tree.storePath;
auto storePath = TRY_AWAIT(fetchers::downloadTarball(
store, EvalSettings::resolvePseudoUrl(value), "source", false)).tree.storePath;
res = { store->toRealPath(storePath) };
} catch (FileTransferError & e) {
logWarning({