generate-manifest-2.7.py: replace os.popen with os.unlink
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 30 May 2012 09:18:15 +0000 (17:18 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Jun 2012 21:56:32 +0000 (22:56 +0100)
commit52d4e48ee3def2f901096a51ca075a520bd59e8e
treef02af7477352d8af3205fade72e42908fd081af9
parent9c290a834aca137f71678edf9fa4fce95985f063
generate-manifest-2.7.py: replace os.popen with os.unlink

The os.popen function would fail (more or less) silently if the executed
program cannot be found, and here what we need is os.system not os.popen
since it doesn't use the return value, use os.unlink() and ignore
exceptions from it would be better as Chris suggested.

[YOCTO #2454]

(From OE-Core rev: bc9f7d7b7eda1c45ad1aaee469ebe28ee1c0c96b)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/python/generate-manifest-2.7.py