Comparison

util/prosodyctl.lua @ 10185:02d8f475a96d

util.prosodyctl: call_luarocks function is now compatible with the list command
author João Duarte <jvsDuarte08@gmail.com>
date Wed, 31 Jul 2019 10:22:11 -0700
parent 10183:5eba710e33f9
child 10187:85725e11c509
comparison
equal deleted inserted replaced
10184:5655cd9fc8e9 10185:02d8f475a96d
310 if operation == "install" then 310 if operation == "install" then
311 show_message("Installing %s at %s", mod, dir); 311 show_message("Installing %s at %s", mod, dir);
312 elseif operation == "remove" then 312 elseif operation == "remove" then
313 show_message("Removing %s from %s", mod, dir); 313 show_message("Removing %s from %s", mod, dir);
314 end 314 end
315 os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod); 315 if operation == "list" then
316 os.execute("luarocks list --tree='"..dir.."'")
317 else
318 os.execute("luarocks --tree='"..dir.."' --server='http://localhost/' "..operation.." "..mod);
319 end
316 if operation == "install" then 320 if operation == "install" then
317 show_module_configuration_help(mod); 321 show_module_configuration_help(mod);
318 end 322 end
319 end 323 end
320 324