Skip to content

Commit

Permalink
[ssuks] Make brand configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Wachter committed Jun 13, 2013
1 parent 10ad7f1 commit 7b3694a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ssuks/ssukickstarter.cpp
Expand Up @@ -132,7 +132,7 @@ QStringList SsuKickstarter::packages(){

// insert @vendor configuration device
QString configuration = QString("@%1 Configuration %2")
.arg("Jolla")
.arg(repoOverride.value("brand"))
.arg(deviceModel);
result.append(configuration);

Expand Down Expand Up @@ -266,6 +266,11 @@ bool SsuKickstarter::write(QString kickstart){
return false;
}

if (!repoOverride.contains("brand")){
qerr << "No brand set. Check your configuration." << endl;
return false;
}

bool opened = false;
QString outputDir = repoOverride.value("outputdir");
if (!outputDir.isEmpty()) outputDir.append("/");
Expand Down

0 comments on commit 7b3694a

Please sign in to comment.