forked from platformio/platformio-core
Add FAQ:Package Manager for PackageInstallError
This commit is contained in:
@ -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):
|
||||
|
@ -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())
|
||||
|
Reference in New Issue
Block a user