In tag clone situations and similar, the initial repo can't use --update, even though the content is substantially similar to existing tags. This change allows setting a hint in tag.extra that the newRepo task will consider.
For readability, I moved the oldrepo logic into its own call, but it's basically the same except for the bit in the middle that handles the hint.
A couple other tweaks are here:
the oldrepo_state option really only makes sense for SHADOWBUILD tags, so we don't pass it for the related tags
Opening this for discussion.
In tag clone situations and similar, the initial repo can't use
--update, even though the content is substantially similar to existing tags. This change allows setting a hint in tag.extra that the newRepo task will consider.For readability, I moved the oldrepo logic into its own call, but it's basically the same except for the bit in the middle that handles the hint.
A couple other tweaks are here:
oldrepo_stateoption really only makes sense for SHADOWBUILD tags, so we don't pass it for the related tagsFixes https://pagure.io/koji/issue/4129