]> git.e2factory.org Git - e2factory.git/commitdiff
e2-build: introduce --check-remote and --check enable both by default when --release...
authorGordon Hecker <gh@emlix.com>
Wed, 16 Dec 2009 10:57:14 +0000 (11:57 +0100)
committerGordon Hecker <gh@emlix.com>
Wed, 16 Dec 2009 11:41:58 +0000 (12:41 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/policy.lua

index 9fdbd91d8b4e2a2d6d459c5fd311b26576c41eda..d264b472ad4fa756fa1eb5f6fa72af19c17d7a4a 100644 (file)
@@ -175,6 +175,13 @@ function register_commandline_options()
        e2option.flag("branch", "set build mode to 'branch'")
        e2option.flag("working-copy", "set build mode to 'working-copy'")
        e2option.flag("release", "set build mode to 'release'")
+       e2option.flag("check-remote",[[
+Verify that remote resources are available
+                Enabled by default in 'release' mode]])
+       e2option.flag("check",[[
+Perform all checks to make sure that a build is
+                reproducible except checking for remote resources
+                Enabled by default in 'release' mode.]])
 end
 
 function handle_commandline_options(opts, use_default)
@@ -214,6 +221,10 @@ function handle_commandline_options(opts, use_default)
                else
                        e2lib.abort("invalid build mode")
                end
+               if opts["build-mode"] == "release" then
+                       opts["check-remote"] = true
+                       opts["check"] = true
+               end
        end
        return mode
 end