diff options
Diffstat (limited to 'src/luarocks/cfg.lua')
-rw-r--r-- | src/luarocks/cfg.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/cfg.lua b/src/luarocks/cfg.lua index 00c4aea0..d4222998 100644 --- a/src/luarocks/cfg.lua +++ b/src/luarocks/cfg.lua | |||
@@ -26,7 +26,6 @@ _M.site_config = site_config | |||
26 | 26 | ||
27 | lua_version = _VERSION:sub(5) | 27 | lua_version = _VERSION:sub(5) |
28 | program_version = "2.0.11" | 28 | program_version = "2.0.11" |
29 | user_agent = "LuaRocks/"..program_version | ||
30 | 29 | ||
31 | local persist = require("luarocks.persist") | 30 | local persist = require("luarocks.persist") |
32 | 31 | ||
@@ -438,6 +437,8 @@ function which_config() | |||
438 | return sys_config_file, sys_config_ok, home_config_file, home_config_ok | 437 | return sys_config_file, sys_config_ok, home_config_file, home_config_ok |
439 | end | 438 | end |
440 | 439 | ||
440 | user_agent = "LuaRocks/"..program_version.." "..arch | ||
441 | |||
441 | --- Check if platform was detected | 442 | --- Check if platform was detected |
442 | -- @param query string: The platform name to check. | 443 | -- @param query string: The platform name to check. |
443 | -- @return boolean: true if LuaRocks is currently running on queried platform. | 444 | -- @return boolean: true if LuaRocks is currently running on queried platform. |