Exit with error if a LuaRocks batch script is missing
This commit is contained in:
parent
115fc6a2fb
commit
d04f34c71a
@ -1288,6 +1288,8 @@ class LuaRocks(Program):
|
|||||||
if os.path.exists(script_path):
|
if os.path.exists(script_path):
|
||||||
shutil.copy(script_path, os.path.join(opts.location, "bin"))
|
shutil.copy(script_path, os.path.join(opts.location, "bin"))
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
sys.exit("Error: can't find {} in {}".format(script, os.path.join(opts.location, "luarocks")))
|
||||||
|
|
||||||
cmake_generator = self.get_cmake_generator(lua_identifiers)
|
cmake_generator = self.get_cmake_generator(lua_identifiers)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user