]> code.ossystems Code Review - openembedded-core.git/commit
license.bbclass: Check if copyfile succeeded with isfile
authorAndrei Gherzan <andrei@gherzan.ro>
Tue, 3 Apr 2012 11:05:48 +0000 (14:05 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Apr 2012 15:50:12 +0000 (16:50 +0100)
commitfa51fe19a1dc1ddc4c9ec879a782953fd6a15117
tree61f25db49178671195b449c0ca15cd4a5d944c52
parent4f2503ebdb5c491b758cbdf6eb7df96d4295c24f
license.bbclass: Check if copyfile succeeded with isfile

A cleaner way to check if copyfile suceeded is to use os.path.isfile.
In this way we can omit warns in some python versions where copyfile
return the same non-0 value even is this action is successfull.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
meta/classes/license.bbclass