diff --git a/platformio/exception.py b/platformio/exception.py index e477bd30..891b994e 100644 --- a/platformio/exception.py +++ b/platformio/exception.py @@ -98,9 +98,9 @@ class UndefinedPackageVersion(PlatformioException): class PackageInstallError(PlatformioException): MESSAGE = ( - "Could not install '{0}' with version requirements '{1}' for your " - "system '{2}'.\n If you use Antivirus, it can block PlatformIO " - "Package Manager. Try to disable it for a while.") + "Could not install '{0}' with version requirements '{1}' " + "for your system '{2}'.\n" + "More details: http://bit.ly/faq-package-manager") class FDUnrecognizedStatusCode(PlatformioException): diff --git a/platformio/managers/package.py b/platformio/managers/package.py index e46c615d..0b1e0ad1 100644 --- a/platformio/managers/package.py +++ b/platformio/managers/package.py @@ -666,6 +666,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin): name, url, requirements, track=True) else: pkg_dir = self._install_from_piorepo(name, requirements) + if not pkg_dir or not self.manifest_exists(pkg_dir): raise exception.PackageInstallError(name, requirements or "*", util.get_systype())