diff --git a/badge_store/main.py b/badge_store/main.py index 8a16d80..5b53447 100644 --- a/badge_store/main.py +++ b/badge_store/main.py @@ -74,7 +74,7 @@ def show_update(): if update: clear() with WaitingMessage(title=title, text="Please wait...") as message: - installers = store.install(_get_current_apps()) + installers = store.update(_get_current_apps()) n = len(installers) for i, installer in enumerate(installers): message.text = "%s (%s/%s)" % (installer.path, i + 1, n) diff --git a/lib/badge_store.py b/lib/badge_store.py index 4be17c6..2eaa026 100644 --- a/lib/badge_store.py +++ b/lib/badge_store.py @@ -34,6 +34,9 @@ class BadgeStore: def install(self, apps): return self._create_installers(self._call("install", {"apps": ",".join(apps)})) + def update(self, apps): + return self._create_installers(self._call("update", {"apps": ",".join(apps)})) + def bootstrap(self): return self._create_installers(self._call("bootstrap"))