bitbake/utils.py: Only try and add read access to a file if we don't have it
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Feb 2011 17:22:00 +0000 (17:22 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 6 May 2011 17:21:17 +0000 (18:21 +0100)
commite4acd09735d4366b49e050a515f088a80345f626
tree6068b3d9540fe3b8b2d3acf31626e130603c1432
parentd98bded97c7e5423ce674205236025ce8d1914b3
bitbake/utils.py: Only try and add read access to a file if we don't have it

A file we're copying might be on a readonly filesystem so if we can already read
it, don't try and add read permission.

Fixes BUGID #771 in Yocto.

(From Poky rev: 9166b9e32fd6f618f9597b07d88cef09a88916a1)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/utils.py