Skip to content
Permalink
Browse files
[ssu] Add warning for and ignore empty URLs on kickstart generation
  • Loading branch information
bwachter committed Oct 6, 2013
1 parent 24f1b6e commit 5aa8e4ae348cd1b478427c1190d36b7484cb8970
Showing with 7 additions and 0 deletions.
  1. +7 −0 ssuks/ssukickstarter.cpp
@@ -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")) {

0 comments on commit 5aa8e4a

Please sign in to comment.