In 4312a4d3f4 MiniYaml merging was adjusted. One effect of this change was that duplicate keys in files that did not previously require merging was previously allowed, but was now an error. (Test case `TestMergeConflictsNoMerge`)
The installer files were relying on the previous behaviour to allow multiple `ContentPackage` keys. The above change caused a regression where attempting to manage mod content would crash due to now erroring on the duplicate keys.
We fix the issue by applying a unique ID suffix, as is a common pattern elsewhere in our yaml files, and teach InstallFromSourceLogic to recognise and strip it.
23 lines
1.0 KiB
YAML
23 lines
1.0 KiB
YAML
counterstrike: Counterstrike Expansion Disc (English)
|
|
Type: Disc
|
|
IDFiles:
|
|
README.TXT: 0efe8087383f0b159a9633f891fb5f53c6097cd4
|
|
SETUP/INSTALL/CSTRIKE.RTP: fae8ba82db71574f6ecd8fb4ff4026fcb65d2adc
|
|
Install:
|
|
# Counterstrike music (optional):
|
|
ContentPackage@music-counterstrike:
|
|
Name: music-counterstrike
|
|
Actions:
|
|
ExtractMix@1: MAIN.MIX
|
|
^SupportDir|Content/ra/v2/expand/scores.mix: scores.mix
|
|
ExtractMix@2: ^SupportDir|Content/ra/v2/expand/scores.mix
|
|
^SupportDir|Content/ra/v2/expand/2nd_hand.aud: 2nd_hand.aud
|
|
^SupportDir|Content/ra/v2/expand/araziod.aud: araziod.aud
|
|
^SupportDir|Content/ra/v2/expand/backstab.aud: backstab.aud
|
|
^SupportDir|Content/ra/v2/expand/chaos2.aud: chaos2.aud
|
|
^SupportDir|Content/ra/v2/expand/shut_it.aud: shut_it.aud
|
|
^SupportDir|Content/ra/v2/expand/twinmix1.aud: twinmix1.aud
|
|
^SupportDir|Content/ra/v2/expand/under3.aud: under3.aud
|
|
^SupportDir|Content/ra/v2/expand/vr2.aud: vr2.aud
|
|
Delete: ^SupportDir|Content/ra/v2/expand/scores.mix
|