[libcalamares] log-as-you-go for verbose commands
This commit is contained in:
parent
4815bf6963
commit
6969a5e01d
@ -261,6 +261,12 @@ CommandList::run()
|
|||||||
|
|
||||||
Calamares::Utils::Runner runner( shell_cmd );
|
Calamares::Utils::Runner runner( shell_cmd );
|
||||||
runner.setLocation( location ).setTimeout( timeout ).setWorkingDirectory( QString() );
|
runner.setLocation( location ).setTimeout( timeout ).setWorkingDirectory( QString() );
|
||||||
|
if ( i->isVerbose() )
|
||||||
|
{
|
||||||
|
runner.enableOutputProcessing();
|
||||||
|
QObject::connect(
|
||||||
|
&runner, &Calamares::Utils::Runner::output, []( QString output ) { cDebug() << output; } );
|
||||||
|
}
|
||||||
ProcessResult r = runner.run();
|
ProcessResult r = runner.run();
|
||||||
|
|
||||||
if ( r.getExitCode() != 0 )
|
if ( r.getExitCode() != 0 )
|
||||||
|
Loading…
Reference in New Issue
Block a user