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
|
@ -512,7 +512,7 @@ def package_completer(prefix, action, parser=None, parsed_args=None):
|
|||
args = parsed_args
|
||||
pmb.config.merge_with_args(args)
|
||||
pmb.helpers.args.replace_placeholders(args)
|
||||
pmb.helpers.args.add_cache(args)
|
||||
pmb.helpers.other.init_cache()
|
||||
packages = set(
|
||||
package for package in pmb.helpers.pmaports.get_list(args)
|
||||
if package.startswith(prefix))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue