Closed g7 closed 2 weeks ago
When updating the configuration in FactoryWorkflow.remote_config_set(), name would be fetched as part of the existing configuration that needs to be updated and would in turn be submitted again.
Shouldn't it replace the existing one instead of duplicating it?
Arguably config.items()
shouldn't return the somewhat internal (?) __name__
entry at all
ok, thanks :) Not sure about the implications of that, so I will keep this PR around as a draft
osc
change has been merged, closing this.
The
__name__
option is added by OscConfigParser automatically, and it contains the section name.When updating the configuration in FactoryWorkflow.remote_config_set(),
__name__
would be fetched as part of the existing configuration that needs to be updated and would in turn be submitted again.Since osc 1.8.0, having duplicate options is not supported [0]. Let's skip
__name__
when updating the mock configuration, as it's an internal option that we don't want to touch anyway.[0] https://github.com/openSUSE/osc/commit/360a94c4a3745dfe59863c6a112acf8bcf38840d