bitbake/fetch2: correctly decode exit signal/status
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 13 Jan 2012 17:01:48 +0000 (17:01 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 15 Jan 2012 10:05:09 +0000 (10:05 +0000)
commit50aea9a76e40cf71cc3f1462c88298e4846a031c
tree3c4dc4ccefd2722162a1ec033268887cece0012d
parentb6f067af12d4661758a78788f1db472684b9aba8
bitbake/fetch2: correctly decode exit signal/status

The termination signal and exit code of the fetch process were not being
decoded correctly, resulting in bitbake reporting that the process
terminated with a signal of the exit code (if it was under 255). There
are functions in the Python os module to do this decoding correctly (for
Unix at least), so let's use them.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py