Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jun 2018 18:42:41 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335009 - head/stand/lua
Message-ID:  <201806121842.w5CIgfAF060671@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kevans
Date: Tue Jun 12 18:42:41 2018
New Revision: 335009
URL: https://svnweb.freebsd.org/changeset/base/335009

Log:
  lualoader: Match Forth module-loading behavior w.r.t flags
  
  Also as documented in loader.conf(5), ${module}_flags are actually flags to
  be passed to the module, not to `load` as was done thus far.

Modified:
  head/stand/lua/config.lua

Modified: head/stand/lua/config.lua
==============================================================================
--- head/stand/lua/config.lua	Tue Jun 12 17:55:40 2018	(r335008)
+++ head/stand/lua/config.lua	Tue Jun 12 18:42:41 2018	(r335009)
@@ -226,9 +226,6 @@ local function loadModule(mod, silent)
 	for k, v in pairs(mod) do
 		if v.load ~= nil and v.load:lower() == "yes" then
 			local str = "load "
-			if v.flags ~= nil then
-				str = str .. v.flags .. " "
-			end
 			if v.type ~= nil then
 				str = str .. "-t " .. v.type .. " "
 			end
@@ -236,6 +233,9 @@ local function loadModule(mod, silent)
 				str = str .. v.name
 			else
 				str = str .. k
+			end
+			if v.flags ~= nil then
+				str = str .. " " .. v.flags
 			end
 			if v.before ~= nil then
 				pstatus = cli_execute_unparsed(v.before) == 0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806121842.w5CIgfAF060671>