mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
correctly parse "pkg_name===version" from pip freeze
This commit is contained in:
parent
ee7f3b1200
commit
3fae91d879
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue