[libcalamares] log-as-you-go for verbose commands

This commit is contained in:
Adriaan de Groot 2024-06-30 15:15:52 +02:00
parent 4815bf6963
commit 6969a5e01d

View File

@ -261,6 +261,12 @@ CommandList::run()
Calamares::Utils::Runner runner( shell_cmd );
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();
if ( r.getExitCode() != 0 )