def handle(self, **options): result = check_versions(only_leonardo=True) output = pp.pprint(result) self.stdout.write(str(output)) return "Needs System Update"
def latest_version(self): """return latest version if is available""" from leonardo_system.pip import check_versions return check_versions(True).get(self.name, None).get('new', None)