Fixed an issue when pio package unpublish command crashes // Resolve #3660

This commit is contained in:
Ivan Kravets
2020-09-09 12:17:09 +03:00
parent 429f416b38
commit cd59c829e0
2 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@ PlatformIO Core 5
- Fixed an issue when using a custom git/ssh package with `platform_packages <https://docs.platformio.org/page/projectconf/section_env_platform.html#platform-packages>`__ option (`issue #3624 <https://github.com/platformio/platformio-core/issues/3624>`_)
- Fixed an issue with "ImportError: cannot import name '_get_backend' from 'cryptography.hazmat.backends'" when using `Remote Development <https://docs.platformio.org/page/plus/pio-remote.html>`__ on RaspberryPi device (`issue #3652 <https://github.com/platformio/platformio-core/issues/3652>`_)
- Fixed an issue when `pio package unpublish <https://docs.platformio.org/page/core/userguide/package/cmd_unpublish.html>`__ command crashes (`issue #3660 <https://github.com/platformio/platformio-core/issues/3660>`_)
5.0.0 (2020-09-03)
~~~~~~~~~~~~~~~~~~

View File

@ -107,7 +107,7 @@ def package_unpublish(package, type, undo): # pylint: disable=redefined-builtin
type=type,
name=spec.name,
owner=spec.owner,
version=spec.requirements,
version=str(spec.requirements),
undo=undo,
)
click.secho(response.get("message"), fg="green")