Fix regular expression so it now matches packages with '.' or '-' at pkg name.

This commit is contained in:
Pablo Ruiz 2015-06-20 21:02:08 +02:00
parent 2d8148fb4d
commit 73adb1df50

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