forked from Mirror/pmbootstrap
pmb.config.init: Use separate answer variable for sudo timer (MR 2490)
Otherwise mypy gets confused about the type as in this case the variable gets set to a boolean and not a string.
This commit is contained in:
parent
6026b0e9ee
commit
8d1ff21e9e
1 changed files with 2 additions and 2 deletions
|
@ -568,11 +568,11 @@ def ask_for_additional_options(config: Config) -> None:
|
||||||
" internally. For long running operations, it is possible"
|
" internally. For long running operations, it is possible"
|
||||||
" that you'll have to authorize sudo more than once."
|
" that you'll have to authorize sudo more than once."
|
||||||
)
|
)
|
||||||
answer = pmb.helpers.cli.confirm(
|
answer_background_timer = pmb.helpers.cli.confirm(
|
||||||
"Enable background timer to prevent repeated sudo authorization?",
|
"Enable background timer to prevent repeated sudo authorization?",
|
||||||
default=context.sudo_timer,
|
default=context.sudo_timer,
|
||||||
)
|
)
|
||||||
config.sudo_timer = answer
|
config.sudo_timer = answer_background_timer
|
||||||
|
|
||||||
# Mirrors
|
# Mirrors
|
||||||
# prompt for mirror change
|
# prompt for mirror change
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue