diff --git a/HISTORY.rst b/HISTORY.rst index 28424044..2d8341ef 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -29,6 +29,8 @@ PlatformIO 2.0 or `PLATFORMIO_BUILD_SRC_FLAGS `__ * Fixed invalid detecting of compiler type (`issue #550 `_) +* Fixed issue with updating package which was deleted manually by user + (`issue #555 `_) 2.8.4 (2016-02-17) diff --git a/platformio/pkgmanager.py b/platformio/pkgmanager.py index 83f4f4b7..0c7bdce7 100644 --- a/platformio/pkgmanager.py +++ b/platformio/pkgmanager.py @@ -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"))