Skip to content

add_auto_tags assumes no whitespace in other repository name #106

@khardix

Description

@khardix

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions