summaryrefslogtreecommitdiff
path: root/lualibs-extended.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-16 17:46:05 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-16 17:46:05 +0200
commitf8a8cd8eed4087a0febaca18f2424821f5fbea73 (patch)
treed11635d033051d8433ed75cf4db8f9967db3eb7b /lualibs-extended.lua
parent0fe5ff760de05e3f9e79b7448df12dd95c843e4a (diff)
downloadlualibs-f8a8cd8eed4087a0febaca18f2424821f5fbea73.tar.gz
fix loading
Diffstat (limited to 'lualibs-extended.lua')
-rw-r--r--lualibs-extended.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/lualibs-extended.lua b/lualibs-extended.lua
index 6b67ce2..438910b 100644
--- a/lualibs-extended.lua
+++ b/lualibs-extended.lua
@@ -120,15 +120,15 @@ end
fake_context()
-local res
+local loaded = false
if lualibs.prefer_merged then
- res = loadmodule('lualibs-extended-merged.lua')
+ loaded = loadmodule('lualibs-extended-merged.lua')
else
info"Ignoring merged packages."
+ info"Falling back to individual libraries from collection “extended”."
end
-if not res then
- info(stringformat("Falling back to “%s”.", basename))
+if loaded == false then
loadmodule("lualibs-util-str.lua")--- string formatters (fast)
loadmodule("lualibs-util-tab.lua")--- extended table operations
loadmodule("lualibs-util-sto.lua")--- storage (hash allocation)