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

Fix issue 24851: regular expression so it now matches packages with '.' or '-' at pkg name #24852

Merged
merged 1 commit into from Jun 22, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions salt/modules/yumpkg.py
Expand Up @@ -1487,9 +1487,9 @@ def get_locked_packages(pattern=None, full=True):
_pat = r'\d\:({0}\-\S+)'.format(pattern)
else:
if full:
_pat = r'(\d\:\w+\-\S+)'
_pat = r'(\d\:\w+(?:[\.\-][^\-]+)*-\S+)'
else:
_pat = r'\d\:(\w+\-\S+)'
_pat = r'\d\:(\w+(?:[\.\-][^\-]+)*-\S+)'
pat = re.compile(_pat)

current_locks = []
Expand Down