diff --git a/platformio/package/manager/platform.py b/platformio/package/manager/platform.py index 7626d4d9de..9d58c806c6 100644 --- a/platformio/package/manager/platform.py +++ b/platformio/package/manager/platform.py @@ -141,6 +141,7 @@ def autoremove_packages(self, names): pm = ToolPackageManager() for pkg in pm.get_installed(): skip_conds = [ + pkg.metadata.spec.owner != "platformio", pkg.metadata.name not in names, pkg.metadata.spec.url, pkg.metadata.name in required