diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-04 00:48:30 -0200 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2014-01-04 00:48:30 -0200 |
| commit | 2e48fb362177369036f26f9c66f74d801fe5931d (patch) | |
| tree | d7bfbfd121bbb440f46b9d2af2cf5ab6adce4c4e /src | |
| parent | 16c2c973b0a1e6c8e94a4ba904c122cfd355f082 (diff) | |
| parent | a30a946f6684e4ba29ba7db7ea0146fa3d012d7f (diff) | |
| download | luarocks-2e48fb362177369036f26f9c66f74d801fe5931d.tar.gz luarocks-2e48fb362177369036f26f9c66f74d801fe5931d.tar.bz2 luarocks-2e48fb362177369036f26f9c66f74d801fe5931d.zip | |
Merge branch 'master' of github.com:keplerproject/luarocks
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/purge.lua | 4 |
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 |
