summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@googlemail.com>2017-01-12 18:11:48 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2017-01-12 09:11:48 -0800
commitcd511791d19929dbd5ce4916e72e194f9b9f131f (patch)
tree901d413e806b393f27963fc8e2f4ffaee32d941f /lib
parentde2cb864faaac04f711e6d0241efcda96d2c5829 (diff)
downloadspack-cd511791d19929dbd5ce4916e72e194f9b9f131f.tar.gz
spack-cd511791d19929dbd5ce4916e72e194f9b9f131f.tar.bz2
spack-cd511791d19929dbd5ce4916e72e194f9b9f131f.tar.xz
spack-cd511791d19929dbd5ce4916e72e194f9b9f131f.zip
configure and build command: fix the stop iteration semantics
- broke somewhere between bdf48322696290d4e3d00ed12b7c7fe6ca213478 (#2810) and 17b13b161b3ddcd691ea7ed90165cfab6dec3950
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_environment.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index 67b00c6749..7046c81c2f 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -553,6 +553,11 @@ def fork(pkg, function, dirty=False):
setup_package(pkg, dirty=dirty)
function(input_stream)
child_connection.send(None)
+ except StopIteration as e:
+ # StopIteration is used to stop installations
+ # before the final stage, mainly for debug purposes
+ tty.msg(e.message)
+ child_connection.send(None)
except:
# catch ANYTHING that goes wrong in the child process
exc_type, exc, tb = sys.exc_info()