mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 03:45:38 -04:00
Queue module jobs in the order they are listed in the "install" section of settings.conf
This commit is contained in:
parent
1b64917385
commit
b5b72855c3
9 changed files with 48 additions and 23 deletions
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue