]> git.e2factory.org Git - e2factory.git/commitdiff
remove most of the annoying default warnings
authorTobias Ulmer <tu@emlix.com>
Fri, 11 Nov 2016 14:59:36 +0000 (15:59 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/policy.lua
local/result.lua
local/source.lua

index 2e26e89a180a951af2cd5bcab60bd5130fbf97f5..725e87f3630a6eb7e9dcb5442e6cce4d93ff1d73 100644 (file)
@@ -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
 
index 26df57dc65b0fe592244b7075dc91d512fab8728..574cfaf9536c5bfcf0332ab1175aa14123bfd417 100644 (file)
@@ -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
 
index d81d7981583ce331a71ea9d520bd50efccb5f01a..42bb5dfc4132dbefa063967c83cf4ee805cf378e 100644 (file)
@@ -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