meta/lib/oe/lsb.py: fix data extraction from /etc/lsb-release
authorCristian Iorga <cristian.iorga@intel.com>
Fri, 29 Mar 2013 09:19:01 +0000 (11:19 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 29 Mar 2013 09:37:38 +0000 (09:37 +0000)
commit868b63c18d51cc770fd6ef37ba8a670eacb3460e
tree3b3d0aeb94291c682a53efd88faa333ce1165f44
parente4ea2483e465b01d43b1992e1bb0a8fea0945de2
meta/lib/oe/lsb.py: fix data extraction from /etc/lsb-release

In some cases, /etc/lsb-release file is used to extract
info about poky build host machine. But the strings are
not stripped of end of line special characters. As such,
when this info is concatenated and used as a directory
entry in sstate_cache, this is an issue.
Usually, this issue is masked by the fact that distro
related info is extracted from the output of lsb_release
command. In case of Yocto Linux, running "lsb_release -a"
will give an error code because CODENAME info is not present.
As such, bitbake will extract the info from /etc/lsb-release,
running into the above issue.
Consequence is that building under BA will crash.

Partial fix for [YOCTO #4071]

(From OE-Core rev: 5d0839bef631dceb4395fcf204779a76966a1061)

Signed-off-by: Cristian Iorga <cristian.iorga@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/lsb.py