From e0f9cb8c2696d92521b077df8bf935b8e3da699e Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 30 Sep 2022 14:10:23 +0300 Subject: [PATCH] Fixed an issue when `pio pkg install --storage-dir` command requires PlatformIO project // Resolve #4410 --- HISTORY.rst | 1 + platformio/package/commands/install.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.rst b/HISTORY.rst index 19241e89..adf17a64 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -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 `__ command requires PlatformIO project (`issue #4410 `_) 6.1.4 (2022-08-12) ~~~~~~~~~~~~~~~~~~ diff --git a/platformio/package/commands/install.py b/platformio/package/commands/install.py index ecfbe7bb..6041e357 100644 --- a/platformio/package/commands/install.py +++ b/platformio/package/commands/install.py @@ -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)