1
0
Fork 1
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:
Caleb Connolly 2024-04-04 02:38:37 +02:00 committed by Oliver Smith
parent 3bfc6474bb
commit 7ed08e74d3
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 20 additions and 30 deletions

View file

@ -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))