> This looks serious, but I don't have the resources (read: a Windows
> box) to try to reproduce it here. Can anyone help on this one?

The problem is that the implementation of fs.is_dir() based on lfs
doesn't work with a trailing slash (the error returned is: cannot
obtain information from file `X:\tools\luarocks/'  ), while the
fallback one that executes `test -d` does work with a slash.

The trailing slash is a leftover from path.root_dir(), and it could be
removed by changing line 40 of path.lua into:

   return rocks_dir:match("(.*)%/" .. suffix .. "$")


PS: couldn't lfs be bundled with LR?

_______________________________________________
Luarocks-developers mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/luarocks-developers

Reply via email to