configure and build command: fix the stop iteration semantics

- broke somewhere between bdf4832269 (#2810) and 17b13b161b
This commit is contained in:
Massimiliano Culpo 2017-01-12 18:11:48 +01:00 committed by Todd Gamblin
parent de2cb864fa
commit cd511791d1

View file

@ -553,6 +553,11 @@ def child_execution(child_connection, input_stream):
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()