aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-07-27 23:01:18 -0700
committerRobert Yang <liezhi.yang@windriver.com>2015-07-28 02:01:44 -0700
commitaa05de93e6a3e525fa642bad6aa5d1acfcb35db4 (patch)
tree6450e7e88b63a5b7ed6e6394c8c54fa9a91544a8
parent1a1d64f1ac0838c3b391f9d8730c5166063a4a6c (diff)
downloadopenembedded-core-contrib-aa05de93e6a3e525fa642bad6aa5d1acfcb35db4.tar.gz
openembedded-core-contrib-aa05de93e6a3e525fa642bad6aa5d1acfcb35db4.tar.bz2
openembedded-core-contrib-aa05de93e6a3e525fa642bad6aa5d1acfcb35db4.zip
useradd_base.bbclass: do not warn when the user exists
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>
-rw-r--r--meta/classes/useradd_base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/useradd_base.bbclass b/meta/classes/useradd_base.bbclass
index 7fe83a7653e..802f3a10858 100644
--- a/meta/classes/useradd_base.bbclass
+++ b/meta/classes/useradd_base.bbclass
@@ -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
}