summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/fetch.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/cmd/fetch.py')
-rw-r--r--lib/spack/spack/cmd/fetch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/fetch.py b/lib/spack/spack/cmd/fetch.py
index e40caaa234..1afc51d9fa 100644
--- a/lib/spack/spack/cmd/fetch.py
+++ b/lib/spack/spack/cmd/fetch.py
@@ -51,7 +51,7 @@ def fetch(parser, args):
for spec in specs:
if args.missing or args.dependencies:
to_fetch = set()
- for s in spec.traverse():
+ for s in spec.traverse(deptype_query=spack.alldeps):
package = spack.repo.get(s)
if args.missing and package.installed:
continue