]> git.e2factory.org Git - e2factory.git/commitdiff
policy: make sure --build-mode=release also sets --release shortcut
authorTobias Ulmer <tu@emlix.com>
Fri, 3 Feb 2017 16:21:55 +0000 (17:21 +0100)
committerTobias Ulmer <tu@emlix.com>
Fri, 3 Feb 2017 16:21:55 +0000 (17:21 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/policy.lua

index 4175db3ba5c90900e9e76e52902be3aeef02dba1..e61a6a649e474b98ac078ba6d64bdd19e4996497 100644 (file)
@@ -235,6 +235,8 @@ function policy.handle_commandline_options(opts, use_default)
     if opts["build-mode"] then
         if policy.default_build_mode(opts["build-mode"]) then
             mode = policy.default_build_mode(opts["build-mode"])
+            -- make sure --build-mode and shortcut are set
+            opts[mode] = true
         else
             return false, err.new("invalid build mode")
         end