]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: appendfile: fix file command error handling
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 9 Jun 2015 16:08:43 +0000 (17:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jun 2015 08:12:01 +0000 (09:12 +0100)
commit7bf9dccef1aa626adc9c45addcd066fed69cace9
treed256f6ac5dda389cbe31552484d444fd531e9c91
parenta0a595307d28d0350c3752293ab8ebf499ee416f
recipetool: appendfile: fix file command error handling

* It turns out that not all versions of the file command support the -E
  option - the version in Ubuntu 14.04 doesn't support it for example.
  This option is supposed to force file to return an error if the file
  can't be opened - since we can't rely upon it then fall back to
  looking at the output instead. (The results of this issue were simply
  that we didn't notice if the file was executable and give a warning,
  which tripped an oe-selftest failure - so it was minor.)
* If we receive an error there's not much point looking at the output to
  see what type was returned because there wasn't one.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
scripts/lib/recipetool/append.py