summaryrefslogtreecommitdiff
path: root/tex/context/base/l-md5.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-02-18 15:46:00 +0100
committerHans Hagen <pragma@wxs.nl>2013-02-18 15:46:00 +0100
commit81f5a2e306755c030618f3a51229bce98df31f20 (patch)
tree6cca94fe0f06800b71ad5465ff3e50fbcede98bf /tex/context/base/l-md5.lua
parente85a18b025a884ca31f94408fa5e9d78f8cfd31d (diff)
downloadcontext-81f5a2e306755c030618f3a51229bce98df31f20.tar.gz
beta 2013.02.18 15:46
Diffstat (limited to 'tex/context/base/l-md5.lua')
-rw-r--r--tex/context/base/l-md5.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tex/context/base/l-md5.lua b/tex/context/base/l-md5.lua
index c19c8248d..01f17d924 100644
--- a/tex/context/base/l-md5.lua
+++ b/tex/context/base/l-md5.lua
@@ -8,6 +8,10 @@ if not modules then modules = { } end modules ['l-md5'] = {
-- This also provides file checksums and checkers.
if not md5 then
+ md5 = optionalrequire("md5")
+end
+
+if not md5 then
md5 = {
sum = function(str) print("error: md5 is not loaded (sum ignored)") return str end,
sumhexa = function(str) print("error: md5 is not loaded (sumhexa ignored)") return str end,