diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2015-02-15 23:08:56 -0200 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2015-02-15 23:08:56 -0200 |
| commit | c54cbfc6d678d4ab6ec94daf6791fe9d4e4a7d4e (patch) | |
| tree | 855b49e0d86bbaba37b9c79f6fb127ace36fd07f | |
| parent | 113ada0d24e148bca42cc79ca05b0cec12b1fd0e (diff) | |
| download | luarocks-c54cbfc6d678d4ab6ec94daf6791fe9d4e4a7d4e.tar.gz luarocks-c54cbfc6d678d4ab6ec94daf6791fe9d4e4a7d4e.tar.bz2 luarocks-c54cbfc6d678d4ab6ec94daf6791fe9d4e4a7d4e.zip | |
Fix behavior of `luarocks pack` on Windows.
It was failing when a path contained spaces due to lack of quoting.
Closes #308.
| -rw-r--r-- | src/luarocks/fs/win32/tools.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index 44d5e080..8ea88f07 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
| @@ -149,7 +149,7 @@ end | |||
| 149 | -- plus an error message. | 149 | -- plus an error message. |
| 150 | function tools.copy_contents(src, dest) | 150 | function tools.copy_contents(src, dest) |
| 151 | assert(src and dest) | 151 | assert(src and dest) |
| 152 | if fs.execute_quiet(fs.Q(vars.CP).." -dR "..src.."\\*.* "..fs.Q(dest)) then | 152 | if fs.execute_quiet(fs.Q(vars.CP), "-dR", src.."\\*.*", dest) then |
| 153 | return true | 153 | return true |
| 154 | else | 154 | else |
| 155 | return false, "Failed copying "..src.." to "..dest | 155 | return false, "Failed copying "..src.." to "..dest |
