Don't elevate luarocks installer on Windows if possible

This commit is contained in:
Peter Melnichenko 2016-04-30 20:55:44 +03:00
parent c6599907dd
commit ba652ab780

View File

@ -1278,6 +1278,8 @@ class LuaRocks(Program):
# Since LuaRocks 2.1.2 # Since LuaRocks 2.1.2
if "/NOREG" in help_text: if "/NOREG" in help_text:
args += ["/NOREG", "/Q"] args += ["/NOREG", "/Q"]
if "/NOADMIN" in help_text:
args += ["/NOADMIN"]
run(args) run(args)