Thu, 30 May 2019 18:36:54 +0200
Conda: fixed an issue causing package list returned by getInstalledPackages() and getUpdateablePackages() not always contain three tuple elements.
eric6/CondaInterface/Conda.py | file | annotate | diff | comparison | revisions |
--- a/eric6/CondaInterface/Conda.py Thu May 30 18:21:17 2019 +0200 +++ b/eric6/CondaInterface/Conda.py Thu May 30 18:36:54 2019 +0200 @@ -283,7 +283,10 @@ package["build_string"] )) else: - packages.append(tuple(package.rsplit("-", 2))) + parts = package.rsplit("-", 2) + while len(parts) < 3: + parts.append("") + packages.append(tuple(parts)) return packages @@ -349,7 +352,10 @@ )) else: package = linkEntry.split()[0] - packages.append(tuple(package.rsplit("-", 2))) + parts = package.rsplit("-", 2) + while len(parts) < 3: + parts.append("") + packages.append(tuple(parts)) return packages