extrausers.bbclass: avoid infinite loop
authorChen Qi <Qi.Chen@windriver.com>
Wed, 6 Nov 2013 02:50:43 +0000 (10:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 6 Nov 2013 11:02:26 +0000 (11:02 +0000)
commit098f72fbb7d9dadf8c58c9620c934e34a08c754b
tree6b2ce3cd178421c1745f257537a88b46266eb15f
parent1ac5850f6baa240759cff8cb78c346439df46b4d
extrausers.bbclass: avoid infinite loop

Avoid infinite loop if the last record in EXTRA_USRES_PARAMS doesn't
end with a semicolon.

It's possible the the users will write configurations like below.

INHERIT += "extrausers"
EXTRA_USERS_PARAMS = "useradd tester; useradd developer"

In such situation, the do_rootfs task will enter an infinite loop.
An infinite loop is never acceptable.

This patch fixes the above problem.

(From OE-Core rev: bf4fb345a9db306fa4c7211b7e6795334a649dd5)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/extrausers.bbclass