mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #24852 from pruiz/issue-24851
Fix issue 24851: regular expression so it now matches packages with '.' or '-' at pkg name
This commit is contained in:
commit
3902b162a9
1 changed files with 2 additions and 2 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Reference in a new issue