Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ssu] Add warning for and ignore empty URLs on kickstart generation
  • Loading branch information
Bernd Wachter committed Oct 6, 2013
1 parent 24f1b6e commit 5aa8e4a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ssuks/ssukickstarter.cpp
Expand Up @@ -100,11 +100,18 @@ QStringList SsuKickstarter::repos(){
QStringList result;
SsuDeviceInfo deviceInfo(deviceModel);
SsuRepoManager repoManager;
QTextStream qerr(stderr);

QStringList repos = repoManager.repos(rndMode, deviceInfo, Ssu::BoardFilter);

foreach (const QString &repo, repos){
QString repoUrl = ssu.repoUrl(repo, rndMode, QHash<QString, QString>(), repoOverride);

if (repoUrl == ""){
qerr << "Repository " << repo << " does not have an URL, ignoring" << endl;
continue;
}

// Adaptation repos need to have separate naming so that when images are done
// the repository caches will not be mixed with each other.
if (repo.startsWith("adaptation")) {
Expand Down

0 comments on commit 5aa8e4a

Please sign in to comment.