[netinstall] Mark operations with source-module
- This will allow us to find the operations later, by looking for the same source-module. - While here, tidy up types
This commit is contained in:
parent
7cadfb8ddd
commit
74169c166a
@ -144,15 +144,17 @@ NetInstallViewStep::onLeave()
|
|||||||
|
|
||||||
if ( !installPackages.empty() )
|
if ( !installPackages.empty() )
|
||||||
{
|
{
|
||||||
QMap< QString, QVariant > op;
|
QVariantMap op;
|
||||||
op.insert( "install", QVariant( installPackages ) );
|
op.insert( "install", QVariant( installPackages ) );
|
||||||
|
op.insert( "source", moduleInstanceKey().toString() );
|
||||||
packageOperations.append( op );
|
packageOperations.append( op );
|
||||||
cDebug() << Logger::SubEntry << installPackages.length() << "critical packages.";
|
cDebug() << Logger::SubEntry << installPackages.length() << "critical packages.";
|
||||||
}
|
}
|
||||||
if ( !tryInstallPackages.empty() )
|
if ( !tryInstallPackages.empty() )
|
||||||
{
|
{
|
||||||
QMap< QString, QVariant > op;
|
QVariantMap op;
|
||||||
op.insert( "try_install", QVariant( tryInstallPackages ) );
|
op.insert( "try_install", QVariant( tryInstallPackages ) );
|
||||||
|
op.insert( "source", moduleInstanceKey().toString() );
|
||||||
packageOperations.append( op );
|
packageOperations.append( op );
|
||||||
cDebug() << Logger::SubEntry << tryInstallPackages.length() << "non-critical packages.";
|
cDebug() << Logger::SubEntry << tryInstallPackages.length() << "non-critical packages.";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user