[OE-core] [PATCH 1/1] toolchain-shar-relocate.sh: Add error-handling

Christopher Larson clarson at kergoth.com
Thu Sep 22 02:06:39 UTC 2016


On Wed, Sep 21, 2016 at 12:54 AM, <mariano.lopez at linux.intel.com> wrote:

> diff --git a/meta/files/toolchain-shar-relocate.sh
> b/meta/files/toolchain-shar-relocate.sh
> index d4bcf0e..e491153 100644
> --- a/meta/files/toolchain-shar-relocate.sh
> +++ b/meta/files/toolchain-shar-relocate.sh
> @@ -1,3 +1,8 @@
> +if ! xargs --version > /dev/null 2>&1; then
> +       echo "xargs is required by the relocation script, please install
> it firts. Abort!"
> +       exit 1
> +fi
>

This is pointless, xargs is mandated by posix/sus.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160921/6f633b9b/attachment-0002.html>


More information about the Openembedded-core mailing list