diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2021-03-16 12:54:54 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2021-03-16 12:54:54 -0300 |
commit | 5a33a5e7526e7bdd69c2e232b91cce6e73c68292 (patch) | |
tree | f4180ae58b61d83078ce8dbaab6798669775a467 | |
parent | 854ab0bd21074aeb14c090fbda50c9e2eed2e0b1 (diff) | |
download | luarocks-5a33a5e7526e7bdd69c2e232b91cce6e73c68292.tar.gz luarocks-5a33a5e7526e7bdd69c2e232b91cce6e73c68292.tar.bz2 luarocks-5a33a5e7526e7bdd69c2e232b91cce6e73c68292.zip |
Fix fs.is_tool_available invocation for SVN
closes #1280
-rw-r--r-- | src/luarocks/fetch/svn.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fetch/svn.lua b/src/luarocks/fetch/svn.lua index ceb15350..b2ae59c9 100644 --- a/src/luarocks/fetch/svn.lua +++ b/src/luarocks/fetch/svn.lua | |||
@@ -20,7 +20,7 @@ function svn.get_sources(rockspec, extract, dest_dir) | |||
20 | assert(type(dest_dir) == "string" or not dest_dir) | 20 | assert(type(dest_dir) == "string" or not dest_dir) |
21 | 21 | ||
22 | local svn_cmd = rockspec.variables.SVN | 22 | local svn_cmd = rockspec.variables.SVN |
23 | local ok, err_msg = fs.is_tool_available(svn_cmd, "--version", "Subversion") | 23 | local ok, err_msg = fs.is_tool_available(svn_cmd, "Subversion", "--version") |
24 | if not ok then | 24 | if not ok then |
25 | return nil, err_msg | 25 | return nil, err_msg |
26 | end | 26 | end |