summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorJamie Mansfield <jmansfield@cadixdev.org>2020-10-11 22:43:39 +0100
committerJamie Mansfield <jmansfield@cadixdev.org>2020-10-12 00:28:05 +0100
commit05ffcf706bff92bdc48f3063d6a64508f8b7674c (patch)
treecc84cbe770dcc1b1f9f64522d7ce67b38a920ae3 /api
parentf1284ab96b48f9964cf6a1d51a89084e54d6b53f (diff)
downloadMultiMC-05ffcf706bff92bdc48f3063d6a64508f8b7674c.tar
MultiMC-05ffcf706bff92bdc48f3063d6a64508f8b7674c.tar.gz
MultiMC-05ffcf706bff92bdc48f3063d6a64508f8b7674c.tar.lz
MultiMC-05ffcf706bff92bdc48f3063d6a64508f8b7674c.tar.xz
MultiMC-05ffcf706bff92bdc48f3063d6a64508f8b7674c.zip
GH-3304 Temporarily ignore download failures for FTB packs
This is a temporary measure, to match FTB's own installer, to allow packs to download while FTB work on fixing the data from their API.
Diffstat (limited to 'api')
-rw-r--r--api/logic/modplatform/modpacksch/FTBPackInstallTask.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/api/logic/modplatform/modpacksch/FTBPackInstallTask.cpp b/api/logic/modplatform/modpacksch/FTBPackInstallTask.cpp
index fdfe560a..912beb67 100644
--- a/api/logic/modplatform/modpacksch/FTBPackInstallTask.cpp
+++ b/api/logic/modplatform/modpacksch/FTBPackInstallTask.cpp
@@ -123,16 +123,20 @@ void PackInstallTask::install()
auto dl = Net::Download::makeFile(file.url, path);
jobPtr->addNetAction(dl);
}
+
connect(jobPtr.get(), &NetJob::succeeded, this, [&]()
{
jobPtr.reset();
emitSucceeded();
});
-
connect(jobPtr.get(), &NetJob::failed, [&](QString reason)
{
jobPtr.reset();
- emitFailed(reason);
+
+ // FIXME: Temporarily ignore file download failures (matching FTB's installer),
+ // while FTB's data is fucked.
+ qWarning() << "Failed to download files for modpack: " + reason;
+ emitSucceeded();
});
connect(jobPtr.get(), &NetJob::progress, [&](qint64 current, qint64 total)
{