Exit if the build system can't be cloned

This commit is contained in:
Alexander van Gessel 2014-02-05 16:12:59 +01:00
parent 4c567d903e
commit e09305afac

View file

@ -585,8 +585,14 @@ def _gen(possible_dirs):
realish_github = GitHub(tempfile.mkdtemp(),"system")
build_system = realish_github.addon("build", readonly=True)
return build_system, True
bs, fresh = _get_build_system(possible_dirs)
bs.update()
try:
bs, fresh = _get_build_system(possible_dirs)
bs.update()
except Error as e:
# Exception to make sure nobody catches it
# Use raise ... from syntax in python3
import sys
raise Exception(str(e)), None, sys.exc_info()[2]
# Add references to shutil and os to ensure we're destructed before they are
stored_shutil = shutil
stored_os = os