forked from Mirror/pmbootstrap
args.cache: remove (MR 2136)
Replace "args.cache" with a global variable in order to avoid passing "args" to all functions. This is a step to get rid of this args-passed-to-all-functions pattern in pmbootstrap.
This commit is contained in:
parent
f30b1cc3f2
commit
ce0f1c2d4a
23 changed files with 127 additions and 115 deletions
|
@ -237,9 +237,9 @@ def sudo_timer_start(args):
|
|||
needed once.
|
||||
"""
|
||||
|
||||
if "sudo_timer_active" in args.cache:
|
||||
if "sudo_timer_active" in pmb.helpers.other.cache:
|
||||
return
|
||||
args.cache["sudo_timer_active"] = True
|
||||
pmb.helpers.other.cache["sudo_timer_active"] = True
|
||||
|
||||
sudo_timer_iterate()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue