Fix start-autostarted / stop-all

This commit is contained in:
Disassembler 2020-04-10 20:19:53 +02:00
parent d70fe9756a
commit 0614c15e3e
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ depend() {
}
start() {
/usr/bin/spoc-app autostart
/usr/bin/spoc-app start-autostarted
}
stop() {

View File

@ -20,7 +20,7 @@ def listing(list_type):
apps = repo_online.get_apps()
elif list_type == 'updates':
online_apps = repo_online.get_apps()
apps = [a for a,d in repo_local.get_apps() if a in online_apps and parse_version(online_apps[a]['version']) > parse_version(d['version'])]
apps = [a for a,d in repo_local.get_apps().items() if a in online_apps and parse_version(online_apps[a]['version']) > parse_version(d['version'])]
elif list_type == 'published':
apps = repo_publish.get_apps()
for app in apps:
@ -101,13 +101,13 @@ def autostart(app_name, value):
def start_autostarted():
# Start all applications (resp. their containers) which are set to be autoostarted on boot
apps = [App(a) for a,d in repo_local.get_apps() if d['autostart']]
apps = [App(a) for a,d in repo_local.get_apps().items() if d['autostart']]
for app in apps:
app.start()
def stop_all():
# Stop all applications (resp. their containers)
apps = [App(a) for a,d in repo_local.get_apps()]
apps = [App(a) for a,d in repo_local.get_apps().items()]
for app in apps:
app.stop()