From: Gordon Hecker Date: Mon, 22 Feb 2010 17:19:47 +0000 (+0100) Subject: cleanup: fix warning code X-Git-Tag: e2factory-2.3.4pre2~6 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=b1b1cccac577ca4a9ec301f919a16c2e13235b16;p=e2factory.git cleanup: fix warning code Signed-off-by: Gordon Hecker --- diff --git a/generic/e2option.lua b/generic/e2option.lua index 50b8f22..a073b85 100644 --- a/generic/e2option.lua +++ b/generic/e2option.lua @@ -336,19 +336,19 @@ function parse(args) i = i + 1 end if opts["Wdefault"] or opts["Wall"] then - e2lib.warn_category.WDEFAULT = true + e2lib.globals.warn_category.WDEFAULT = true end if opts["Wdeprecated"] or opts["Wall"] then - e2lib.warn_category.WDEPRECATED = true + e2lib.globals.warn_category.WDEPRECATED = true end if opts["Wnoother"] then - e2lib.warn_category.WOTHER = false + e2lib.globals.warn_category.WOTHER = false end if opts["Wpolicy"] or opts["Wall"] then - e2lib.warn_category.WPOLICY = true + e2lib.globals.warn_category.WPOLICY = true end if opts["Whint"] or opts["Wall"] then - e2lib.warn_category.WHINT = true + e2lib.globals.warn_category.WHINT = true end e2option.opts = opts return opts, vals