KojiBuilder was incorrectly handling naming of metapackages when adding them to target tag, essentialy duplicated the collection name (i.e. adding rh-ror50-rh-ror50 in place of just rh-ror50).
This fix adds a check for the metapackage name, avoiding the duplication.
Next attempt at this fix. This time, I left it in two commits:
The first one (c8ff0ca9bfd253d5ef5fba6b0d187bc62ba5e1bb) contains the fix itself, extracted into separate function (as requested), with test and associated changes in related functions.
The other one is refactoring (making regular methods from static ones, extracting repeated test setup into fixture, etc.).
KojiBuilder
was incorrectly handling naming of metapackages when adding them to target tag, essentialy duplicated the collection name (i.e. addingrh-ror50-rh-ror50
in place of justrh-ror50
).This fix adds a check for the metapackage name, avoiding the duplication.