aboutsummaryrefslogtreecommitdiff
path: root/src/luarocks/remove.tl
diff options
context:
space:
mode:
Diffstat (limited to 'src/luarocks/remove.tl')
-rw-r--r--src/luarocks/remove.tl11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/luarocks/remove.tl b/src/luarocks/remove.tl
index 11d270a9..21fdd51b 100644
--- a/src/luarocks/remove.tl
+++ b/src/luarocks/remove.tl
@@ -36,7 +36,7 @@ local function check_dependents(name: string, versions: {string: {Result}}, deps
36 local_rocks[name] = nil 36 local_rocks[name] = nil
37 for rock_name, rock_versions in pairs(local_rocks) do 37 for rock_name, rock_versions in pairs(local_rocks) do
38 for rock_version, _ in pairs(rock_versions) do 38 for rock_version, _ in pairs(rock_versions) do
39 local rockspec, err = fetch.load_rockspec(path.rockspec_file(rock_name, rock_version)) 39 local rockspec = fetch.load_rockspec(path.rockspec_file(rock_name, rock_version))
40 if rockspec then 40 if rockspec then
41 local _, missing = deps.match_deps(rockspec.dependencies.queries, rockspec.rocks_provided, deps_mode, skip_set) 41 local _, missing = deps.match_deps(rockspec.dependencies.queries, rockspec.rocks_provided, deps_mode, skip_set)
42 if missing[name] then 42 if missing[name] then
@@ -127,8 +127,13 @@ function remove.remove_other_versions(name: string, version: string, force: bool
127 if not fast then 127 if not fast then
128 -- since we're not using --keep, this means that all files of the rock being installed 128 -- since we're not using --keep, this means that all files of the rock being installed
129 -- should be available as non-versioned variants. Double-check that: 129 -- should be available as non-versioned variants. Double-check that:
130 local rock_manifest, load_err = manif.load_rock_manifest(name, version) 130 local rock_manifest, err = manif.load_rock_manifest(name, version)
131 local ok, err = repos.check_everything_is_installed(name, version, rock_manifest, cfg.root_dir, false) 131 if not rock_manifest then
132 return nil, err
133 end
134
135 local ok: boolean
136 ok, err = repos.check_everything_is_installed(name, version, rock_manifest, cfg.root_dir, false)
132 if not ok then 137 if not ok then
133 return nil, err 138 return nil, err
134 end 139 end