forked from qt-creator/qt-creator
SdkTool: Allow remote paths in various operations
QDir::cleanPath() doesn't work well with the scheme://... syntax. Change-Id: I2d2a86e416251ea2396b67ab1e5831444d4a979a Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -37,7 +37,6 @@
|
||||
|
||||
#include "settings.h"
|
||||
|
||||
#include <QDir>
|
||||
#include <QRegularExpression>
|
||||
|
||||
#include <iostream>
|
||||
@@ -185,7 +184,7 @@ bool AddKitOperation::setArguments(const QStringList &args)
|
||||
if (next.isNull())
|
||||
return false;
|
||||
++i; // skip next;
|
||||
m_sysRoot = QDir::fromNativeSeparators(next);
|
||||
m_sysRoot = next;
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -649,7 +648,7 @@ QVariantMap AddKitOperation::addKit(const QVariantMap &map, const QVariantMap &t
|
||||
if (!device.isNull())
|
||||
data << KeyValuePair({kit, DATA, DEVICE_ID}, QVariant(device));
|
||||
if (!sysRoot.isNull())
|
||||
data << KeyValuePair({kit, DATA, SYSROOT}, QVariant(sysRoot));
|
||||
data << KeyValuePair({kit, DATA, SYSROOT}, Utils::FilePath::fromUserInput(sysRoot).toVariant());
|
||||
for (auto i = tcs.constBegin(); i != tcs.constEnd(); ++i)
|
||||
data << KeyValuePair({kit, DATA, TOOLCHAIN, i.key()}, QVariant(i.value()));
|
||||
if (!qtId.isNull())
|
||||
|
||||
Reference in New Issue
Block a user