Skip to content

Commit cd59c82

Browse files
committed
Fixed an issue when pio package unpublish command crashes // Resolve platformio#3660
1 parent 429f416 commit cd59c82

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

HISTORY.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ PlatformIO Core 5
1313

1414
- 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>`_)
1515
- 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>`_)
16+
- 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>`_)
1617

1718
5.0.0 (2020-09-03)
1819
~~~~~~~~~~~~~~~~~~

platformio/commands/package.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def package_unpublish(package, type, undo): # pylint: disable=redefined-builtin
107107
type=type,
108108
name=spec.name,
109109
owner=spec.owner,
110-
version=spec.requirements,
110+
version=str(spec.requirements),
111111
undo=undo,
112112
)
113113
click.secho(response.get("message"), fg="green")

0 commit comments

Comments
 (0)