mirror of
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap.git
synced 2025-07-13 03:19:47 +03:00
pmb.helpers.other.cache: simplify (MR 2252)
The init_cache() function just assigned some default constants, simplify this by just declaring it that way to begin with, as well as adding type hints. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
3bfc6474bb
commit
7ed08e74d3
4 changed files with 20 additions and 30 deletions
|
@ -593,7 +593,6 @@ 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.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