From 45267fc8979fe9bb7819a770df97482d87732577 Mon Sep 17 00:00:00 2001 From: Aradhya Tripathi <67282231+Aradhya-Tripathi@users.noreply.github.com> Date: Thu, 23 Jun 2022 00:10:41 +0530 Subject: [PATCH] fix: fixed update_app_states call (#1326) --- bench/app.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/bench/app.py b/bench/app.py index 1dd0b8aa..ed006427 100755 --- a/bench/app.py +++ b/bench/app.py @@ -158,7 +158,15 @@ class AppMeta: @functools.lru_cache(maxsize=None) class App(AppMeta): - def __init__(self, name: str, branch: str = None, bench: "Bench" = None, soft_link : bool = False, *args, **kwargs): + def __init__( + self, + name: str, + branch: str = None, + bench: "Bench" = None, + soft_link: bool = False, + *args, + **kwargs, + ): self.bench = bench self.soft_link = soft_link self.required_by = None @@ -257,9 +265,14 @@ class App(AppMeta): def update_app_state(self): from bench.bench import Bench + bench = Bench(self.bench.name) - bench.apps.sync(app_dir=self.app_name, app_name=self.name, - branch=self.tag, required_list=self.local_resolution) + bench.apps.sync( + app_dir=self.app_name, + app_name=self.name, + branch=self.tag, + required=self.local_resolution, + )