pmb.parse.arguments: fix pkgname autocompletion (!1905)

Use pmb.helpers.args.add_cache() with the args used during
autocompletion, so pmb.helpers.pmaports._find_apkbuilds() does not fail
when trying to access args.cache.
This commit is contained in:
Oliver Smith 2020-04-04 23:04:14 +02:00
parent 364fb333f6
commit 73401f8606
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 1 additions and 0 deletions

View File

@ -309,6 +309,7 @@ def package_completer(prefix, action, parser, parsed_args):
args = parsed_args
pmb.config.merge_with_args(args)
pmb.helpers.args.replace_placeholders(args)
pmb.helpers.args.add_cache(args)
packages = set(
package for package in pmb.helpers.pmaports.get_list(args)
if package.startswith(prefix))