Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow adding arbitrary repository url variables in ssu.ini
  • Loading branch information
Bernd Wachter committed Oct 21, 2012
1 parent 54f56a9 commit 7d2ebc5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions libssu/ssu.cpp
Expand Up @@ -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
settings->beginGroup("repository-url-variables");
repoVariables = settings->allKeys();
foreach (const QString &key, repoVariables){
repoParameters.insert(key, settings->value(key).toString());
}
settings->endGroup();

// 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());
Expand Down

0 comments on commit 7d2ebc5

Please sign in to comment.