diff options
author | Mario Melara <maamelara@gmail.com> | 2016-05-30 13:05:49 -0700 |
---|---|---|
committer | Mario Melara <maamelara@gmail.com> | 2016-05-30 13:05:49 -0700 |
commit | f96c97902452761cbf2bff64d3efa1240df70771 (patch) | |
tree | ed25cc32b3c24d15d70c9c6d36494bc4318cd2ae | |
parent | 22ca72e7b9870dddfd66760658a9221f4f24ffe3 (diff) | |
download | spack-f96c97902452761cbf2bff64d3efa1240df70771.tar.gz spack-f96c97902452761cbf2bff64d3efa1240df70771.tar.bz2 spack-f96c97902452761cbf2bff64d3efa1240df70771.tar.xz spack-f96c97902452761cbf2bff64d3efa1240df70771.zip |
Added a conditional to check if package is external
-rw-r--r-- | lib/spack/spack/concretize.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/concretize.py b/lib/spack/spack/concretize.py index 5d9715feed..58811c3419 100644 --- a/lib/spack/spack/concretize.py +++ b/lib/spack/spack/concretize.py @@ -84,7 +84,8 @@ class DefaultConcretizer(object): raise NoBuildError(spec) def cmp_externals(a, b): - if a.name != b.name: + if a.name != b.name and (not a.external or a.external_module and + not b.external and b.external_module): # We're choosing between different providers, so # maintain order from provider sort return candidates.index(a) - candidates.index(b) |