Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add_auto_tags assumes no whitespace in other repository name #106

Open
khardix opened this issue Sep 4, 2018 · 0 comments
Open

add_auto_tags assumes no whitespace in other repository name #106

khardix opened this issue Sep 4, 2018 · 0 comments
Assignees
Labels

Comments

@khardix
Copy link
Collaborator

khardix commented Sep 4, 2018

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 khardix added the bug label Sep 4, 2018
@khardix khardix self-assigned this Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant