Verified Commit 4f7dacaf authored by Martin Matějek's avatar Martin Matějek
Browse files

lists: use explicit type when storing pkglists

Don't rely on type autodetection
parent 7c07ee74
......@@ -105,7 +105,7 @@ def update_pkglists(lists: typing.Dict[str, typing.Dict[str, bool]]):
if opt not in known_lists[name]['options']:
raise UpdaterNoSuchListOptionError("Can't enable unknown package list option: {}: {}".format(name, opt))
with EUci() as uci:
uci.set('pkglists', 'pkglists', 'pkglist', lists.keys())
uci.set('pkglists', 'pkglists', 'pkglist', list(lists.keys()))
for name, options in lists.items():
uci.delete('pkglists', name)
uci.set('pkglists', name, name)
......
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