softwarecollections icon indicating copy to clipboard operation
softwarecollections copied to clipboard

add_auto_tags assumes no whitespace in other repository name

Open khardix opened this issue 7 years ago • 0 comments

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))

Attachments

khardix avatar Sep 04 '18 12:09 khardix