]> code.ossystems Code Review - openembedded-core.git/commitdiff
useradd_base.bbclass: do not warn when the user exists
authorRobert Yang <liezhi.yang@windriver.com>
Tue, 28 Jul 2015 09:03:33 +0000 (02:03 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 1 Aug 2015 09:57:23 +0000 (10:57 +0100)
Use bbnote rather than bbwarn when the user exists, otherwise we would
always get the warnings when rebuild the recipe or build with mulitlib,
everything is OK if the user exists, so it should not be a warning.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/useradd_base.bbclass

index 7fe83a7653e3c8fa9e2c0fa68efd92ed4dc41406..802f3a10858f24e12d1d495ed1deb34185180107 100644 (file)
@@ -34,7 +34,7 @@ perform_groupadd () {
                         sleep $count
                done
        else
-               bbwarn "${PN}: group $groupname already exists, not re-creating it"
+               bbnote "${PN}: group $groupname already exists, not re-creating it"
        fi
 }
 
@@ -62,7 +62,7 @@ perform_useradd () {
                       sleep $count
               done
        else
-               bbwarn "${PN}: user $username already exists, not re-creating it"
+               bbnote "${PN}: user $username already exists, not re-creating it"
        fi
 }