diff options
| -rw-r--r-- | src/luarocks/core/manif.lua | 6 | ||||
| -rw-r--r-- | src/luarocks/core/manif.tl | 6 |
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 | ||
| 50 | function manif.cache_manifest(repo_url, lua_version, manifest) | 50 | function 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 |
| 54 | end | 54 | end |
| 55 | 55 | ||
| 56 | 56 | ||
| @@ -59,7 +59,7 @@ end | |||
| 59 | 59 | ||
| 60 | function manif.get_cached_manifest(repo_url, lua_version) | 60 | function 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] |
| 63 | end | 63 | end |
| 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. |
| 50 | function manif.cache_manifest(repo_url: string, lua_version: string, manifest: Manifest) | 50 | function 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 |
| 54 | end | 54 | end |
| 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. |
| 60 | function manif.get_cached_manifest(repo_url: string, lua_version: string): Manifest | 60 | function 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] |
| 63 | end | 63 | end |
| 64 | 64 | ||
| 65 | --- Back-end function that actually loads the manifest | 65 | --- Back-end function that actually loads the manifest |
