diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2011-01-14 11:50:38 -0200 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2011-01-14 11:50:38 -0200 |
| commit | 95377aabf99c7dd3c70ac6b5fd9309907efaa5c7 (patch) | |
| tree | 56c9496554d2d9c99b895fcc053b75654fa87138 | |
| parent | b4c57525f4b5b6a8fa1c4cf0ab15ac95e9031c4c (diff) | |
| download | luarocks-95377aabf99c7dd3c70ac6b5fd9309907efaa5c7.tar.gz luarocks-95377aabf99c7dd3c70ac6b5fd9309907efaa5c7.tar.bz2 luarocks-95377aabf99c7dd3c70ac6b5fd9309907efaa5c7.zip | |
Fix fs.exists, as pointed out by Doug Currie.
| -rw-r--r-- | src/luarocks/fs/lua.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index e055f67e..3a547fe5 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
| @@ -401,7 +401,7 @@ end | |||
| 401 | function exists(file) | 401 | function exists(file) |
| 402 | assert(file) | 402 | assert(file) |
| 403 | file = normalize(file) | 403 | file = normalize(file) |
| 404 | return type(file) == "table" | 404 | return type(lfs.attributes(file)) == "table" |
| 405 | end | 405 | end |
| 406 | 406 | ||
| 407 | --- Test is pathname is a directory. | 407 | --- Test is pathname is a directory. |
