Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/httpd/lua Unbreak script for Lua 5.3.



details:   https://anonhg.NetBSD.org/src/rev/d5bf9d1f00b5
branches:  trunk
changeset: 322404:d5bf9d1f00b5
user:      sevan <sevan%NetBSD.org@localhost>
date:      Wed May 02 00:03:27 2018 +0000

description:
Unbreak script for Lua 5.3.
This change breaks support for older releases of Lua.

diffstat:

 libexec/httpd/lua/optparse.lua |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 9a668717dee7 -r d5bf9d1f00b5 libexec/httpd/lua/optparse.lua
--- a/libexec/httpd/lua/optparse.lua    Wed May 02 00:02:15 2018 +0000
+++ b/libexec/httpd/lua/optparse.lua    Wed May 02 00:03:27 2018 +0000
@@ -42,7 +42,7 @@
   end
   function o.parse_args()
     -- expand options (e.g. "--input=file" -> "--input", "file")
-    local arg = {unpack(arg)}
+    local arg = {table.unpack(arg)}
     for i=#arg,1,-1 do local v = arg[i]
       local flag, val = v:match('^(%-%-%w+)=(.*)')
       if flag then



Home | Main Index | Thread Index | Old Index