HOB: 'str' object has no attribute 'close'
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 30 May 2012 10:19:08 +0000 (18:19 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 30 May 2012 16:23:30 +0000 (17:23 +0100)
commitaeb2a58c74d2fcf366c7a223e257d3dd712aa090
treeb63549a762a315654a2f1fa0931a5a1ab1fb467b
parent4fddbf21fca509aa68922ba1051a6b29ed41605f
HOB: 'str' object has no attribute 'close'

For builddetailspage.py:
  The "f" was a stream in the past, it is a string now, so it doesn't
  need f.close(), and change its name to "branch".

  And we don't need the "2>&1" since bb.process.run() can handle it, it
  will raise exception when error occurs, we should handle the exception
  ourselves if we want to ignore the error.

For hig.py:
  Use bb.process.Popen() since it doesn't need the return value. If we
  use bb.process.run(), the parent process will wait for the child process
  to terminate to get the result.

[YOCTO #2511]

(Bitbake rev: ab10f3da1976581c371c43cdb88f405cf6fbcd95)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/builddetailspage.py
bitbake/lib/bb/ui/crumbs/hig.py