softwarecollections
softwarecollections copied to clipboard
add_auto_tags assumes no whitespace in other repository name
When assigning automatic tags from other repositories to a SCL, the function assumes that the repository (distribution) name will not contain any whitespace.
This broke when I used the "CentOS Testing" as name for repository of unreleased packages for CentOS. What's more, attaching the repository to the SCL worked, but then broke further description and repository edits.
Suggested fix
# replace all whitespace with dash in tags
Tag.objects.add_tag(self, re.sub(r'\s+', r'-', tag))