Fix issue with updating package which was deleted manually by user // Resolve #555

This commit is contained in:
Ivan Kravets
2016-03-03 19:01:09 +02:00
parent 888967eb61
commit 1e3e3dd999
2 changed files with 4 additions and 1 deletions

View File

@ -29,6 +29,8 @@ PlatformIO 2.0
or `PLATFORMIO_BUILD_SRC_FLAGS <http://docs.platformio.org/en/latest/envvars.html#platformio-build-src-flags>`__
* Fixed invalid detecting of compiler type
(`issue #550 <https://github.com/platformio/platformio/issues/550>`_)
* Fixed issue with updating package which was deleted manually by user
(`issue #555 <https://github.com/platformio/platformio/issues/555>`_)
2.8.4 (2016-02-17)

View File

@ -126,7 +126,8 @@ class PackageManager(object):
click.secho("Not installed", fg="yellow")
return False
rmtree(join(self._package_dir, name))
if isdir(join(self._package_dir, name)):
rmtree(join(self._package_dir, name))
self._unregister(name)
click.echo("[%s]" % click.style("OK", fg="green"))