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:
Thomas S Hatch 2015-06-22 16:37:13 -04:00
commit 3902b162a9

View file

@ -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 = []