aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV1K1NGbg <victor@ilchev.com>2024-07-13 00:11:59 +0300
committerV1K1NGbg <victor@ilchev.com>2024-08-05 20:49:17 +0300
commit47343ebfbb5e8565dae31678a39bf8b90d20e9bf (patch)
tree69895cbd7c999752252a3679605f51a9951cd649
parent32b20798b5b71fd646bbaa05896ce94a61058af6 (diff)
downloadluarocks-47343ebfbb5e8565dae31678a39bf8b90d20e9bf.tar.gz
luarocks-47343ebfbb5e8565dae31678a39bf8b90d20e9bf.tar.bz2
luarocks-47343ebfbb5e8565dae31678a39bf8b90d20e9bf.zip
temp fix
-rw-r--r--src/luarocks/core/manif.lua6
-rw-r--r--src/luarocks/core/manif.tl6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/luarocks/core/manif.lua b/src/luarocks/core/manif.lua
index 6f48bab3..ec491383 100644
--- a/src/luarocks/core/manif.lua
+++ b/src/luarocks/core/manif.lua
@@ -49,8 +49,8 @@ local manifest_cache = {}
49 49
50function manif.cache_manifest(repo_url, lua_version, manifest) 50function manif.cache_manifest(repo_url, lua_version, manifest)
51 lua_version = lua_version or cfg.lua_version 51 lua_version = lua_version or cfg.lua_version
52 manifest_cache.repository[repo_url] = manifest_cache.repository[repo_url] or {} 52 manifest_cache[repo_url] = manifest_cache[repo_url] or {}
53 manifest_cache.repository[repo_url][lua_version] = manifest 53 manifest_cache[repo_url][lua_version] = manifest
54end 54end
55 55
56 56
@@ -59,7 +59,7 @@ end
59 59
60function manif.get_cached_manifest(repo_url, lua_version) 60function manif.get_cached_manifest(repo_url, lua_version)
61 lua_version = lua_version or cfg.lua_version 61 lua_version = lua_version or cfg.lua_version
62 return manifest_cache.repository[repo_url] and manifest_cache.repository[repo_url][lua_version] 62 return manifest_cache[repo_url] and manifest_cache[repo_url][lua_version]
63end 63end
64 64
65 65
diff --git a/src/luarocks/core/manif.tl b/src/luarocks/core/manif.tl
index dc8b53d2..dd45890e 100644
--- a/src/luarocks/core/manif.tl
+++ b/src/luarocks/core/manif.tl
@@ -49,8 +49,8 @@ local manifest_cache: Manifest = {}
49-- @param manifest table: the manifest to be cached. 49-- @param manifest table: the manifest to be cached.
50function manif.cache_manifest(repo_url: string, lua_version: string, manifest: Manifest) 50function manif.cache_manifest(repo_url: string, lua_version: string, manifest: Manifest)
51 lua_version = lua_version or cfg.lua_version 51 lua_version = lua_version or cfg.lua_version
52 manifest_cache.repository[repo_url] = manifest_cache.repository[repo_url] or {} 52 manifest_cache[repo_url] = manifest_cache[repo_url] or {}
53 manifest_cache.repository[repo_url][lua_version] = manifest 53 manifest_cache[repo_url][lua_version] = manifest
54end 54end
55 55
56--- Attempt to get cached loaded manifest. 56--- Attempt to get cached loaded manifest.
@@ -59,7 +59,7 @@ end
59-- @return table or nil: loaded manifest or nil if cache is empty. 59-- @return table or nil: loaded manifest or nil if cache is empty.
60function manif.get_cached_manifest(repo_url: string, lua_version: string): Manifest 60function manif.get_cached_manifest(repo_url: string, lua_version: string): Manifest
61 lua_version = lua_version or cfg.lua_version 61 lua_version = lua_version or cfg.lua_version
62 return manifest_cache.repository[repo_url] and manifest_cache.repository[repo_url][lua_version] 62 return manifest_cache[repo_url] and manifest_cache[repo_url][lua_version]
63end 63end
64 64
65--- Back-end function that actually loads the manifest 65--- Back-end function that actually loads the manifest