diff --git a/lib/spack/spack/cmd/buildcache.py b/lib/spack/spack/cmd/buildcache.py index 6bb04a9998..39a20fcaf2 100644 --- a/lib/spack/spack/cmd/buildcache.py +++ b/lib/spack/spack/cmd/buildcache.py @@ -701,7 +701,7 @@ def update_index(mirror_url, update_keys=False): def update_index_fn(args): """Update a buildcache index.""" - outdir = '.' + outdir = 'file://.' if args.mirror_url: outdir = args.mirror_url