Verified Commit 0489976e authored by Karel Koci's avatar Karel Koci 🤘 Committed by Karel Koci
Browse files

supervisor: update uci configuration for 4.x uci format

parent 196761e1
......@@ -66,7 +66,7 @@ def userlists(lang=None):
with Uci() as uci:
lists = uci.get("updater", "pkglists", "lists")
lists = uci.get("updater", "turris", "pkglists")
except (UciExceptionNotFound, KeyError):
# If we fail to get that section then just ignore
return result
......@@ -96,5 +96,5 @@ def update_userlists(lists):
# Set
with Uci() as uci:
uci.set('updater', 'pkglists', 'pkglists')
uci.set('updater', 'pkglists', 'lists', tuple(lists))
uci.set('updater', 'turris', 'turris')
uci.set('updater', 'turris', 'pkglists', tuple(lists))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment