From cd511791d19929dbd5ce4916e72e194f9b9f131f Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Thu, 12 Jan 2017 18:11:48 +0100 Subject: configure and build command: fix the stop iteration semantics - broke somewhere between bdf48322696290d4e3d00ed12b7c7fe6ca213478 (#2810) and 17b13b161b3ddcd691ea7ed90165cfab6dec3950 --- lib/spack/spack/build_environment.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') 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() -- cgit v1.2.3-70-g09d2