From b0d35abdb6256cea36df3eaf1bf6970d03bbf417 Mon Sep 17 00:00:00 2001 From: Aaron Dewes Date: Wed, 26 Oct 2022 17:10:05 +0200 Subject: [PATCH] Fix updates --- app/app-manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/app-manager.py b/app/app-manager.py index c71c1a0..d1a3a11 100755 --- a/app/app-manager.py +++ b/app/app-manager.py @@ -120,19 +120,19 @@ elif args.action == 'install': with open(registryFile, 'r') as f: registry = json.load(f) for app in registry: - if not app.compatible: - for dependency in app.missing_dependencies: + if not app['compatible']: + for dependency in app['missing_dependencies']: # If dependency is a string, check if it's the app we're installing or the app we're installing implements if isinstance(dependency, str): if dependency == args.app or args.app in virtual_apps[dependency]: # Delete the app's result.yml file - os.remove(os.path.join(nodeRoot, "apps", app.name, "result.yml")) + os.remove(os.path.join(nodeRoot, "apps", app['id'], "result.yml")) # Else, it should be a list, so check if the app we're installing is in it elif isinstance(dependency, list): for dep in dependency: if dep == args.app or args.app in virtual_apps[dep]: # Delete the app's result.yml file - os.remove(os.path.join(nodeRoot, "apps", app.name, "result.yml")) + os.remove(os.path.join(nodeRoot, "apps", app['id'], "result.yml")) # Reconfigure os.system(os.path.join(nodeRoot, "scripts", "configure")) os.chdir(nodeRoot)