Queue module jobs in the order they are listed in the "install" section of settings.conf

This commit is contained in:
Aurélien Gâteau 2014-07-22 16:54:34 +02:00
parent 1b64917385
commit b5b72855c3
9 changed files with 48 additions and 23 deletions

View file

@ -18,7 +18,6 @@
#include "ProcessJobModule.h"
#include "JobQueue.h"
#include "ProcessJob.h"
#include <QDir>
@ -48,14 +47,20 @@ ProcessJobModule::loadSelf()
if ( m_loaded )
return;
Calamares::job_ptr j = Calamares::job_ptr( new ProcessJob( m_command,
m_workingPath,
m_secondsTimeout ) );
JobQueue::instance()->enqueue( j );
m_job = Calamares::job_ptr( new ProcessJob( m_command,
m_workingPath,
m_secondsTimeout ) );
m_loaded = true;
}
QList< job_ptr >
ProcessJobModule::jobs() const
{
return QList< job_ptr >() << m_job;
}
void
ProcessJobModule::initFrom( const YAML::Node& node )
{