Exit with error if a LuaRocks batch script is missing

This commit is contained in:
Peter Melnichenko 2016-04-28 12:47:44 +03:00
parent 115fc6a2fb
commit d04f34c71a

View File

@ -1288,6 +1288,8 @@ class LuaRocks(Program):
if os.path.exists(script_path):
shutil.copy(script_path, os.path.join(opts.location, "bin"))
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)