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 Unbreak script ...



details:   https://anonhg.NetBSD.org/src/rev/2dfbaf82e930
branches:  trunk
changeset: 322356:2dfbaf82e930
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 dd672091cbfb -r 2dfbaf82e930 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