Commit 7d2ebc53 authored by Aard's avatar Aard

Allow adding arbitrary repository url variables in ssu.ini

parent 54f56a99
......@@ -186,9 +186,19 @@ QString Ssu::release(bool rnd){
QString Ssu::repoUrl(QString repoName, bool rndRepo, QHash<QString, QString> repoParameters){
QString r;
QStringList configSections;
QStringList repoVariables;
errorFlag = false;
// fill in all arbitrary variables from ssu.ini
repoVariables = settings->allKeys();
foreach (const QString &key, repoVariables){
repoParameters.insert(key, settings->value(key).toString());
// add/overwrite some of the variables with sane ones
if (rndRepo){
repoParameters.insert("flavour", repoSettings->value(flavour()+"-flavour/flavour-pattern").toString());
repoParameters.insert("release", settings->value("rndRelease").toString());
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