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):
|
class PackageInstallError(PlatformioException):
|
||||||
|
|
||||||
MESSAGE = (
|
MESSAGE = (
|
||||||
"Could not install '{0}' with version requirements '{1}' for your "
|
"Could not install '{0}' with version requirements '{1}' "
|
||||||
"system '{2}'.\n If you use Antivirus, it can block PlatformIO "
|
"for your system '{2}'.\n"
|
||||||
"Package Manager. Try to disable it for a while.")
|
"More details: http://bit.ly/faq-package-manager")
|
||||||
|
|
||||||
|
|
||||||
class FDUnrecognizedStatusCode(PlatformioException):
|
class FDUnrecognizedStatusCode(PlatformioException):
|
||||||
|
@ -666,6 +666,7 @@ class BasePkgManager(PkgRepoMixin, PkgInstallerMixin):
|
|||||||
name, url, requirements, track=True)
|
name, url, requirements, track=True)
|
||||||
else:
|
else:
|
||||||
pkg_dir = self._install_from_piorepo(name, requirements)
|
pkg_dir = self._install_from_piorepo(name, requirements)
|
||||||
|
|
||||||
if not pkg_dir or not self.manifest_exists(pkg_dir):
|
if not pkg_dir or not self.manifest_exists(pkg_dir):
|
||||||
raise exception.PackageInstallError(name, requirements or "*",
|
raise exception.PackageInstallError(name, requirements or "*",
|
||||||
util.get_systype())
|
util.get_systype())
|
||||||
|
Reference in New Issue
Block a user