mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-29 10:25:36 -04:00
[libcalamares] Move CommandList into libcalamares
- Move CommandList so it can be used from more modules than just ShellProcess - Allow a CommandList to run itself. This centralizes code for executing one or more commands and simplifies the ShellProcess module. Various small cleanups: - mention instance id in log message - code formatting / style
This commit is contained in:
parent
60f4dd7b3b
commit
913690650f
8 changed files with 142 additions and 123 deletions
|
@ -24,11 +24,11 @@
|
|||
|
||||
#include <CppJob.h>
|
||||
|
||||
#include <utils/CommandList.h>
|
||||
#include <utils/PluginFactory.h>
|
||||
|
||||
#include <PluginDllMacro.h>
|
||||
|
||||
class CommandList;
|
||||
|
||||
class PLUGINDLLEXPORT ShellProcessJob : public Calamares::CppJob
|
||||
{
|
||||
|
@ -45,7 +45,7 @@ public:
|
|||
void setConfigurationMap( const QVariantMap& configurationMap ) override;
|
||||
|
||||
private:
|
||||
CommandList *m_commands;
|
||||
CalamaresUtils::CommandList* m_commands;
|
||||
bool m_dontChroot;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue