Commit 3b54e042 authored by Marko Saukko's avatar Marko Saukko

Suggest developer-mode to rnd images by default.

[ks] Suggest developer-mode to rnd images by default. Contributes to JB#39097

Other option would have been to create separate img-features-rnd= for
the rnd side, however that seems a bit overkill as in general the
features should be the same on release and rnd to make sure that we have
same functionality. The installation of developermode to the rnd images
is quite special case.
Signed-off-by: default avatarMarko Saukko <marko.saukko@jolla.com>
parent 1b8d1e8d
......@@ -347,15 +347,19 @@ bool SsuKickstarter::write(const QString &kickstart)
QStringList featuresList = deviceInfo.value("img-features").toStringList();
// Add developer-mode feature to rnd images by default
if (rndMode)
featuresList << "developer-mode";
QString suggestedFeatures;
// work around some idiotic JS list parsing on our side by terminating one-element list by comma
if (featuresList.count() == 1)
suggestedFeatures = QString("# SuggestedFeatures: %1,")
.arg(deviceInfo.value("img-features").toStringList().join(", "));
.arg(featuresList.join(", "));
else if (featuresList.count() > 1)
suggestedFeatures = QString("# SuggestedFeatures: %1")
.arg(deviceInfo.value("img-features").toStringList().join(", "));
.arg(featuresList.join(", "));
QString imageType = "fs";
if (!deviceInfo.value("img-type").toString().isEmpty())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment