]> code.ossystems Code Review - openembedded-core.git/commit
udev-cache: refactor conditionals and error handling
authorRichard Tollerton <rich.tollerton@ni.com>
Tue, 21 Jan 2014 19:46:46 +0000 (13:46 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Dec 2014 17:54:15 +0000 (17:54 +0000)
commita1357f3c78e46cd4297fefab56acf87342967132
tree35872cd429ae65d71a30c1c3e76de45465201a22
parenteb52b257511b7624c8e212f5e9df711935d619ee
udev-cache: refactor conditionals and error handling

Most of /etc/init.d/udev-cache is in a conditional block which can be
replaced by a `[ ... ] || exit 0` to reduce nesting.

This also provides an opportunity to add some additional messages
when VERBOSE is set.

Capture and report errors encountered in the cache generation process,
using set -e and trap EXIT. These errors were previously being ignored.

Signed-off-by: Richard Tollerton <rich.tollerton@ni.com>
meta/recipes-core/udev/udev/udev-cache