-- Hisham
http://hisham.hm/


On 4 July 2013 13:46, Ignacio Burgueño <iburgu...@gmail.com> wrote:
> Got another bug on Windows.
>
> luarocks make some_rockspec is failing on me when trying to copy the "lua"
> directory.
>
> cp: failed to preserve ownership for
> `c:\\LuaRocks\\\\lib\\luarocks\\rocks\\lnsocketio-client\\git-1\\lua/socket-io-client':
> Permission denied
>
> This is due to this commit:
> https://github.com/keplerproject/luarocks/commit/1bab385c2ce4f37f808774540c6fe3b46afdda68
>
> This works (tested both with luarocks make and luarocks pack):
>
> --- Recursively copy the contents of a directory.
> -- @param src string: Pathname of source
> -- @param dest string: Pathname of destination
> -- @return boolean or (boolean, string): true on success, false on failure,
> -- plus an error message.
> function copy_contents(src, dest)
>    assert(src and dest)
>    if fs.execute_string(fs.quiet(vars.CP.." -dR "..fs.Q(src).."\\*.*
> "..fs.Q(dest))) then
>       return true
>    else
>       return false, "Failed copying "..src.." to "..dest
>    end
> end

If my eyes are diff'ing correctly, the idea is just to change -a to -dR, right?

-- Hisham
http://hisham.hm/

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Luarocks-developers mailing list
Luarocks-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/luarocks-developers

Reply via email to