Fixed an issue when pio pkg install --storage-dir command requires PlatformIO project // Resolve #4410

This commit is contained in:
Ivan Kravets
2022-09-30 14:10:23 +03:00
parent d6d1c6b327
commit e0f9cb8c26
2 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@ PlatformIO Core 6
* Speeded up device port finder by avoiding loading board HWIDs from development platforms
* Improved caching of build metadata in debug mode
* Fixed an issue when `pio pkg install --storage-dir <https://docs.platformio.org/en/latest/core/userguide/pkg/cmd_install.html>`__ command requires PlatformIO project (`issue #4410 <https://github.com/platformio/platformio-core/issues/4410>`_)
6.1.4 (2022-08-12)
~~~~~~~~~~~~~~~~~~

View File

@ -61,7 +61,7 @@ from platformio.test.runners.factory import TestRunnerFactory
@click.option("-f", "--force", is_flag=True, help="Reinstall package if it exists")
@click.option("-s", "--silent", is_flag=True, help="Suppress progress reporting")
def package_install_cmd(**options):
if options.get("global"):
if options.get("global") or options.get("storage_dir"):
install_global_dependencies(options)
else:
install_project_dependencies(options)