Commit 6a9c80c1 authored by Aard's avatar Aard

End group when reading complete section in deviceinfo

parent 8298403a
......@@ -293,6 +293,7 @@ void SsuDeviceInfo::variableSection(QString section, QHash<QString, QString> *st
foreach (const QString &key, keys){
storageHash->insert(key, boardMappings->value(key).toString());
}
boardMappings->endGroup();
}
void SsuDeviceInfo::setDeviceModel(QString model){
......
......@@ -43,19 +43,26 @@ void SsuKs::run(){
}
Sandbox *sb;
if (repoParameters.contains("sandbox")){
QString sandbox = repoParameters.value("sandbox");
repoParameters.remove("sandbox");
qout << "Using sandbox at " << sandbox << endl;
Sandbox *sb = new Sandbox(sandbox, Sandbox::UseAsSkeleton, Sandbox::ThisProcess);
sb = new Sandbox(sandbox, Sandbox::UseAsSkeleton, Sandbox::ThisProcess);
sb->addWorldFiles(SSU_BOARD_MAPPING_CONFIGURATION_DIR);
sb->activate();
sb->addWorldFiles("/etc/ssu");
sb->addWorldFiles("/usr/share/ssu");
if (sb->activate())
qout << "Using sandbox at " << sandbox << endl;
else {
qout << "Failed to activate sandbox" << endl;
return;
}
}
SsuKickstarter kickstarter;
kickstarter.setRepoParameters(repoParameters);
kickstarter.write(fileName);
SsuKickstarter *kickstarter = new SsuKickstarter();
kickstarter->setRepoParameters(repoParameters);
kickstarter->write(fileName);
} else
usage();
......
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