Fix "RuntimeError: maximum recursion depth exceeded" for library manager // Resolve #1528

This commit is contained in:
Ivan Kravets
2018-04-25 16:57:43 +03:00
parent 1c68409a08
commit 2ae169d210
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,8 @@ PlatformIO 3.0
(e.g., ``-DNAME=VALUE``)
* Fixed issue which did not allow to override runtime build environment using
extra POST script
* Fixed "RuntimeError: maximum recursion depth exceeded" for library manager
(`issue #1528 <https://github.com/platformio/platformio-core/issues/1528>`_)
3.5.2 (2018-03-13)
~~~~~~~~~~~~~~~~~~

View File

@ -667,7 +667,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
self.INSTALL_HISTORY = []
history_key = "%s-%s-%s" % (name, requirements or "", url or "")
if history_key in self.INSTALL_HISTORY:
return package_dir
return None
self.INSTALL_HISTORY.append(history_key)
if package_dir and force: