diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-04-16 17:46:05 +0200 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-04-16 17:46:05 +0200 |
commit | f8a8cd8eed4087a0febaca18f2424821f5fbea73 (patch) | |
tree | d11635d033051d8433ed75cf4db8f9967db3eb7b /lualibs-basic.lua | |
parent | 0fe5ff760de05e3f9e79b7448df12dd95c843e4a (diff) | |
download | lualibs-f8a8cd8eed4087a0febaca18f2424821f5fbea73.tar.gz |
fix loading
Diffstat (limited to 'lualibs-basic.lua')
-rw-r--r-- | lualibs-basic.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lualibs-basic.lua b/lualibs-basic.lua index 4a17bdc..883ae5f 100644 --- a/lualibs-basic.lua +++ b/lualibs-basic.lua @@ -21,15 +21,15 @@ end local loadmodule = lualibs.loadmodule local stringformat = string.format -local res +local loaded = false if lualibs.prefer_merged then - res = loadmodule('lualibs-basic-merged.lua') + loaded = loadmodule('lualibs-basic-merged.lua') else info"Ignoring merged packages." + info"Falling back to individual libraries from collection “basic”." end -if not res then - info(stringformat("Falling back to “%s”.", basename)) +if loaded == false then loadmodule("lualibs-lua.lua") loadmodule("lualibs-lpeg.lua") loadmodule("lualibs-function.lua") |