mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 10:07:14 +02:00
Handle unknown packages when do cleaning // Resolve #1282
This commit is contained in:
@ -153,7 +153,10 @@ class PlatformManager(BasePkgManager):
|
|||||||
continue
|
continue
|
||||||
if (manifest['name'] not in deppkgs
|
if (manifest['name'] not in deppkgs
|
||||||
or manifest['version'] not in deppkgs[manifest['name']]):
|
or manifest['version'] not in deppkgs[manifest['name']]):
|
||||||
pm.uninstall(manifest['__pkg_dir'], after_update=True)
|
try:
|
||||||
|
pm.uninstall(manifest['__pkg_dir'], after_update=True)
|
||||||
|
except exception.UnknownPackage:
|
||||||
|
pass
|
||||||
|
|
||||||
self.cache_reset()
|
self.cache_reset()
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user