summaryrefslogtreecommitdiff
path: root/tex/context/base/luat-crl.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/luat-crl.lua')
-rw-r--r--tex/context/base/luat-crl.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/tex/context/base/luat-crl.lua b/tex/context/base/luat-crl.lua
index c0690b8af..aaf2e86a1 100644
--- a/tex/context/base/luat-crl.lua
+++ b/tex/context/base/luat-crl.lua
@@ -7,12 +7,11 @@
if not versions then versions = { } end versions['luat-crl'] = 1.001
if not curl then curl = { } end
-curl.cachepath = caches.setpath(texmf.instance,"curl")
-
-curl.cached = { }
+curl.cached = { }
+curl.cachepath = caches.definepath(texmf.instance,"curl")
function curl.fetch(protocol, name)
- local cachename = curl.cachepath .. "/" .. name:gsub("[^%a%d%.]+","-")
+ local cachename = curl.cachepath() .. "/" .. name:gsub("[^%a%d%.]+","-")
-- cachename = cachename:gsub("[\\/]", io.fileseparator)
cachename = cachename:gsub("[\\]", "/")
if not curl.cached[name] then