spack buildcache: fix a typo in a function call (#40446)

fixes #40415
This commit is contained in:
Massimiliano Culpo 2023-10-11 13:09:21 +02:00 committed by GitHub
parent da030617a1
commit 26f291ef25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ def _matching_specs(specs: List[Spec]) -> List[Spec]:
return [spack.cmd.disambiguate_spec(s, ev.active_environment(), installed=any) for s in specs] return [spack.cmd.disambiguate_spec(s, ev.active_environment(), installed=any) for s in specs]
def push_fn(args): def push_fn(args: argparse.Namespace):
"""create a binary package and push it to a mirror""" """create a binary package and push it to a mirror"""
if args.spec_file: if args.spec_file:
tty.warn( tty.warn(
@ -414,7 +414,7 @@ def preview_fn(args):
) )
def check_fn(args): def check_fn(args: argparse.Namespace):
"""check specs against remote binary mirror(s) to see if any need to be rebuilt """check specs against remote binary mirror(s) to see if any need to be rebuilt
this command uses the process exit code to indicate its result, specifically, if the this command uses the process exit code to indicate its result, specifically, if the
@ -429,7 +429,7 @@ def check_fn(args):
specs = spack.cmd.parse_specs(args.spec or args.spec_file) specs = spack.cmd.parse_specs(args.spec or args.spec_file)
if specs: if specs:
specs = _matching_specs(specs, specs) specs = _matching_specs(specs)
else: else:
specs = spack.cmd.require_active_env("buildcache check").all_specs() specs = spack.cmd.require_active_env("buildcache check").all_specs()