Merge pull request #146 from davea/use-update-endpoint
Call /update instead of /install on the backend when updating appsmaster
commit
64d719f08d
|
@ -74,7 +74,7 @@ def show_update():
|
||||||
if update:
|
if update:
|
||||||
clear()
|
clear()
|
||||||
with WaitingMessage(title=title, text="Please wait...") as message:
|
with WaitingMessage(title=title, text="Please wait...") as message:
|
||||||
installers = store.install(_get_current_apps())
|
installers = store.update(_get_current_apps())
|
||||||
n = len(installers)
|
n = len(installers)
|
||||||
for i, installer in enumerate(installers):
|
for i, installer in enumerate(installers):
|
||||||
message.text = "%s (%s/%s)" % (installer.path, i + 1, n)
|
message.text = "%s (%s/%s)" % (installer.path, i + 1, n)
|
||||||
|
|
|
@ -34,6 +34,9 @@ class BadgeStore:
|
||||||
def install(self, apps):
|
def install(self, apps):
|
||||||
return self._create_installers(self._call("install", {"apps": ",".join(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):
|
def bootstrap(self):
|
||||||
return self._create_installers(self._call("bootstrap"))
|
return self._create_installers(self._call("bootstrap"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue