From cd59c829e04a266b9572fcf995b5698efe19d1aa Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 9 Sep 2020 12:17:09 +0300 Subject: [PATCH] Fixed an issue when `pio package unpublish` command crashes // Resolve #3660 --- HISTORY.rst | 1 + platformio/commands/package.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index a0ac578b..53db423c 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -13,6 +13,7 @@ PlatformIO Core 5 - Fixed an issue when using a custom git/ssh package with `platform_packages `__ option (`issue #3624 `_) - Fixed an issue with "ImportError: cannot import name '_get_backend' from 'cryptography.hazmat.backends'" when using `Remote Development `__ on RaspberryPi device (`issue #3652 `_) +- Fixed an issue when `pio package unpublish `__ command crashes (`issue #3660 `_) 5.0.0 (2020-09-03) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/commands/package.py b/platformio/commands/package.py index 88f6c0d3..f62362ff 100644 --- a/platformio/commands/package.py +++ b/platformio/commands/package.py @@ -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")