Lua: Add Install module

Allows plugins to install packages they might need.

Change-Id: I4948dd0a6568e093fc35e4486d2e2a084090e103
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-05-14 13:47:50 +02:00
parent f54a83ff45
commit eec48b8f8e
9 changed files with 482 additions and 25 deletions

View File

@@ -92,11 +92,12 @@ void addFetchModule()
reply->deleteLater();
if (reply->error() != QNetworkReply::NoError) {
callback(QString("%1 (%2)")
callback(QString("%1 (%2):\n%3")
.arg(reply->errorString())
.arg(QString::fromLatin1(
QMetaEnum::fromType<QNetworkReply::NetworkError>()
.valueToKey(reply->error()))));
.valueToKey(reply->error())))
.arg(QString::fromUtf8(reply->readAll())));
return;
}