Fix packages tab completion (!1731)

Make tab completion work again for packages, if the default pmaports
dir is used. In the last "args" code refactor, the variable replacing
code was moved into its own function. We did not call it in the
packagecompleter() yet, so it could not replace the $WORK variable in
the default pmaports path.
This commit is contained in:
Oliver Smith 2018-12-15 02:27:32 +01:00
parent 60f12ae2df
commit 1662fc1961
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ def arguments_repo_missing(subparser):
def packagecompleter(prefix, action, parser, parsed_args):
args = parsed_args
pmb.config.merge_with_args(args)
pmb.helpers.args.replace_variables(args)
packages = set(pmb.helpers.pmaports.get_list(args))
return packages