aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/purge.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/luarocks/purge.lua b/src/luarocks/purge.lua
index 285c0f34..8c2164f9 100644
--- a/src/luarocks/purge.lua
+++ b/src/luarocks/purge.lua
@@ -44,6 +44,10 @@ function run(...)
44 if not fs.is_dir(tree) then 44 if not fs.is_dir(tree) then
45 return nil, "Directory not found: "..tree 45 return nil, "Directory not found: "..tree
46 end 46 end
47
48 local ok, err = fs.check_command_permissions(flags)
49 if not ok then return nil, err, cfg.errorcodes.PERMISSIONDENIED end
50
47 search.manifest_search(results, path.rocks_dir(tree), query) 51 search.manifest_search(results, path.rocks_dir(tree), query)
48 52
49 local sort = function(a,b) return deps.compare_versions(b,a) end 53 local sort = function(a,b) return deps.compare_versions(b,a) end