mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
correctly parse "pkg_name===version" from pip freeze
This commit is contained in:
parent
ee7f3b1200
commit
3fae91d879
@ -1082,6 +1082,9 @@ def list_(prefix=None,
|
||||
elif line.startswith('-e'):
|
||||
line = line.split('-e ')[1]
|
||||
version_, name = line.split('#egg=')
|
||||
elif len(line.split('===')) >= 2:
|
||||
name = line.split('===')[0]
|
||||
version_ = line.split('===')[1]
|
||||
elif len(line.split('==')) >= 2:
|
||||
name = line.split('==')[0]
|
||||
version_ = line.split('==')[1]
|
||||
|
Loading…
Reference in New Issue
Block a user