Handle unknown packages when do cleaning // Resolve #1282

This commit is contained in:
Ivan Kravets
2018-04-15 05:48:38 +03:00
parent 02efe4f7f3
commit d0cc3a045e

View File

@ -153,7 +153,10 @@ class PlatformManager(BasePkgManager):
continue
if (manifest['name'] not in deppkgs
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()
return True