]> git.e2factory.org Git - e2factory.git/commitdiff
e2option: repair userdefaultoptions() processing
authorTobias Ulmer <tu@emlix.com>
Tue, 25 Oct 2016 14:27:27 +0000 (16:27 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
generic/e2option.lua

index 98005a78e9e86f5fd9a26bd8f0a902202ef04e21..32fd10b31a93dde9ee632c333e67be5b8d074fd8 100644 (file)
@@ -267,6 +267,8 @@ local function userdefaultoptions(opts)
             else
                 opts[opt] = options[opt].proc(val)
             end
+        elseif val and options[opt].type == "option" then
+            opts[opt] = val
         elseif options[opt].default then
             opts[opt] = options[opt].default
         else