forked from platformio/platformio-core
Cleanup not used packages after update
This commit is contained in:
@ -72,6 +72,7 @@ class PlatformManager(BasePkgManager):
|
|||||||
BasePkgManager.update(self, name, requirements, only_check)
|
BasePkgManager.update(self, name, requirements, only_check)
|
||||||
p = PlatformFactory.newPlatform(name, requirements)
|
p = PlatformFactory.newPlatform(name, requirements)
|
||||||
p.update_packages(only_check)
|
p.update_packages(only_check)
|
||||||
|
self.cleanup_packages(p.packages.keys())
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def is_outdated(self, name, requirements=None):
|
def is_outdated(self, name, requirements=None):
|
||||||
|
Reference in New Issue
Block a user