Check that PIO Plus could be updated before do update

This commit is contained in:
Ivan Kravets
2017-03-11 13:12:41 +02:00
parent f39cda041c
commit 31715e937b

View File

@ -56,7 +56,8 @@ def pioplus_install():
def pioplus_update():
pm = PioPlusPackageManager()
for item in PACKAGE_DEPS.values():
if pm.get_package(item['name']):
pkg_dir = pm.get_package_dir(item['name'])
if pkg_dir and pm.outdated(pkg_dir, item['requirements']):
pm.update(item['name'], item['requirements'])