From 51838a948f3c4b734bdf7aa53e825fb146f4b003 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 11 Nov 2016 15:59:36 +0100 Subject: [PATCH] remove most of the annoying default warnings Signed-off-by: Tobias Ulmer --- local/policy.lua | 2 -- local/result.lua | 11 ----------- local/source.lua | 6 ------ 3 files changed, 19 deletions(-) diff --git a/local/policy.lua b/local/policy.lua index 2e26e89..725e87f 100644 --- a/local/policy.lua +++ b/local/policy.lua @@ -236,8 +236,6 @@ function policy.handle_commandline_options(opts, use_default) return false, err.new("multiple build modes are not supported") end if not opts["build-mode"] and use_default then - e2lib.warnf("WDEFAULT", "build-mode defaults to '%s'", - default_build_mode_name) opts["build-mode"] = default_build_mode_name end diff --git a/local/result.lua b/local/result.lua index 26df57d..574cfaf 100644 --- a/local/result.lua +++ b/local/result.lua @@ -221,9 +221,6 @@ function result.result_class:initialize(rawres) end if rawres.sources == nil then - e2lib.warnf("WDEFAULT", "in result %s:", self._name) - e2lib.warnf("WDEFAULT", " sources attribute not configured." .. - "Defaulting to empty list") rawres.sources = {} elseif type(rawres.sources) == "string" then e2lib.warnf("WDEPRECATED", "in result %s:", self._name) @@ -248,9 +245,6 @@ function result.result_class:initialize(rawres) if rawres.depends == nil then - e2lib.warnf("WDEFAULT", "in result %s: ", self._name) - e2lib.warnf("WDEFAULT", " depends attribute not configured. " .. - "Defaulting to empty list") rawres.depends = {} elseif type(rawres.depends) == "string" then e2lib.warnf("WDEPRECATED", "in result %s:", self._name) @@ -270,9 +264,6 @@ function result.result_class:initialize(rawres) end if rawres.chroot == nil then - e2lib.warnf("WDEFAULT", "in result %s:", self._name) - e2lib.warnf("WDEFAULT", " chroot groups not configured. " .. - "Defaulting to empty list") rawres.chroot = {} elseif type(rawres.chroot) == "string" then e2lib.warnf("WDEPRECATED", "in result %s:", self._name) @@ -311,8 +302,6 @@ function result.result_class:initialize(rawres) e:append("result has invalid `env' attribute") else if not rawres.env then - e2lib.warnf("WDEFAULT", "result has no `env' attribute. ".. - "Defaulting to empty dictionary") rawres.env = {} end diff --git a/local/source.lua b/local/source.lua index d81d798..42bb5df 100644 --- a/local/source.lua +++ b/local/source.lua @@ -214,8 +214,6 @@ function source.load_source_configs(info) end if not rawsrc.name then - e2lib.warnf("WDEFAULT", "`name' attribute missing in source config.") - e2lib.warnf("WDEFAULT", " Defaulting to directory name") rawsrc.name = e2tool.src_res_path_to_name(cfg) end @@ -239,8 +237,6 @@ function source.load_source_configs(info) -- source with no type field is treated as file source if not rawsrc.type then rawsrc.type = "files" - e2lib.warnf("WDEFAULT", "in source %s", rawsrc.name) - e2lib.warnf("WDEFAULT", " type attribute defaults to `files'") end if not source_types[rawsrc.type] then @@ -353,8 +349,6 @@ function source.generic_source_validate_env(rawsrc, src) end if not rawsrc.env then - e2lib.warnf("WDEFAULT", - "source has no `env' attribute. Defaulting to empty dictionary") rawsrc.env = {} end -- 2.39.5