classes/buildhistory: fix error when no packages are installed
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 19 Jun 2013 16:53:06 +0000 (17:53 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Jun 2013 12:10:46 +0000 (13:10 +0100)
commite658c36a33594bcf5fdf447ec1395a3f9fe49b70
treedd2b1c24895f35026e6245c62e6b0abe54887f5c
parent03abf7fe56e75c404a3a64a644783873a0ba89b5
classes/buildhistory: fix error when no packages are installed

"xargs -n1 basename" will execute basename even if there are no lines
piped into it, causing a "basename: missing operand" error if no
packages are installed, which will happen for the target portion of
buildtools-tarball.

(xargs' -r option could have been used here, but it is a GNU extension
and I thought it best to avoid that for the sake of future
interoperability).

(From OE-Core rev: 03d86123e9e804e62de38effd307f070d7863080)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass