Revert "don't attempt with a blank host name in fetch-lua"
This reverts commit 9566605ba2.
This commit is contained in:
@@ -344,8 +344,7 @@ dofiles-nodlb:
|
|||||||
LUA_URL :=www.lua.org/ftp
|
LUA_URL :=www.lua.org/ftp
|
||||||
LUA_URL_MIRROR :=www.tecgraf.puc-rio.br/lua/mirror/ftp
|
LUA_URL_MIRROR :=www.tecgraf.puc-rio.br/lua/mirror/ftp
|
||||||
LUA_URL_NHD :=www.nethack.org/download/thirdparty
|
LUA_URL_NHD :=www.nethack.org/download/thirdparty
|
||||||
LUA_CEASE_TRYING := __cease_trying__
|
LUA_URL_list:=$(LUA_URL) $(LUA_URL_MIRROR) $(LUA_URL_NHD)
|
||||||
LUA_URL_list:=$(LUA_URL) $(LUA_URL_MIRROR) $(LUA_URL_NHD) $(LUA_CEASE_TRYING)
|
|
||||||
#
|
#
|
||||||
#CURL := curl
|
#CURL := curl
|
||||||
#ask curl to return a failure code if error 404 is encountered
|
#ask curl to return a failure code if error 404 is encountered
|
||||||
@@ -376,7 +375,6 @@ fetch-Lua:
|
|||||||
mkdir -p lib && cd lib && \
|
mkdir -p lib && cd lib && \
|
||||||
while [ $$# -gt 0 ]; do \
|
while [ $$# -gt 0 ]; do \
|
||||||
shift; \
|
shift; \
|
||||||
if [ "$$1" != "$(LUA_CEASE_TRYING)" ]; then \
|
|
||||||
if [ $$curlstatus -ne 0 ]; then \
|
if [ $$curlstatus -ne 0 ]; then \
|
||||||
luaurl=https://$$1/$$luafile; \
|
luaurl=https://$$1/$$luafile; \
|
||||||
echo Trying $$luaurl; \
|
echo Trying $$luaurl; \
|
||||||
@@ -398,9 +396,6 @@ fetch-Lua:
|
|||||||
rm -f $$luafile; \
|
rm -f $$luafile; \
|
||||||
fi; \
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
else \
|
|
||||||
exit 1; \
|
|
||||||
fi; \
|
|
||||||
done; \
|
done; \
|
||||||
true )
|
true )
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user