Add FAQ:Package Manager for PackageInstallError

This commit is contained in:
Ivan Kravets
2018-01-11 02:10:51 +02:00
parent 16eb41b84e
commit cfb22f2a36
2 changed files with 4 additions and 3 deletions

View File

@ -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):

View File

@ -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())