Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Turris
updater
supervisor
Commits
4f7dacaf
Verified
Commit
4f7dacaf
authored
Mar 05, 2020
by
Martin Matějek
Browse files
lists: use explicit type when storing pkglists
Don't rely on type autodetection
parent
7c07ee74
Changes
1
Hide whitespace changes
Inline
Side-by-side
svupdater/lists.py
View file @
4f7dacaf
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment