Put migrated on-demand last

This commit is contained in:
Davide 2024-11-14 15:19:07 +01:00
parent 615f7d47bd
commit 341ae97f50
No known key found for this signature in database
GPG Key ID: A48836171C759F5E
1 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,6 @@ struct MapperV2 {
builder.name = v2.header.name builder.name = v2.header.name
builder.attributes.lastUpdate = v2.header.lastUpdate builder.attributes.lastUpdate = v2.header.lastUpdate
modules.append(toOnDemandModule(v2.onDemand))
if let provider = v2.provider { if let provider = v2.provider {
if let module = try toProviderModule(provider) { if let module = try toProviderModule(provider) {
let providerId = ProviderID(rawValue: provider.name) let providerId = ProviderID(rawValue: provider.name)
@ -52,6 +50,8 @@ struct MapperV2 {
modules.append($0) modules.append($0)
} }
modules.append(toOnDemandModule(v2.onDemand))
builder.modules = modules builder.modules = modules
builder.activeModulesIds = Set(modules.map(\.id)) builder.activeModulesIds = Set(modules.map(\.id))
return try builder.tryBuild() return try builder.tryBuild()