Source-Changes-HG archive

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

[src/trunk]: src/crypto/external/bsd/netpgp/dist/bindings/lua Un...



details:   https://anonhg.NetBSD.org/src/rev/91600331d4ac
branches:  trunk
changeset: 318592:91600331d4ac
user:      sevan <sevan%NetBSD.org@localhost>
date:      Mon Apr 30 21:40:59 2018 +0000
description:
Unbreak script for Lua 5.3.
This change breaks support for older releases of Lua but it is deemed ok.

diffstat:

 crypto/external/bsd/netpgp/dist/bindings/lua/optparse.lua |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e0f9c463ec27 -r 91600331d4ac crypto/external/bsd/netpgp/dist/bindings/lua/optparse.lua
--- a/crypto/external/bsd/netpgp/dist/bindings/lua/optparse.lua Mon Apr 30 21:02:39 2018 +0000
+++ b/crypto/external/bsd/netpgp/dist/bindings/lua/optparse.lua Mon Apr 30 21:40:59 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