diff options
author | Enrico Scholz <enrico.scholz@sigma-chemnitz.de> | 2013-02-10 13:41:47 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-11 14:45:37 +0000 |
commit | ec2aab09769f4b6817d74d2175afa2b7c7598750 (patch) | |
tree | 30c59f26635dc5e37b2ba150a5e59a8c5a1e35d2 /meta/lib/oe/tests/test_path.py | |
parent | 2fa5cc0d08e855e24a4497601d7cc73b9f2aa550 (diff) | |
download | openembedded-core-ec2aab09769f4b6817d74d2175afa2b7c7598750.tar.gz openembedded-core-ec2aab09769f4b6817d74d2175afa2b7c7598750.tar.bz2 openembedded-core-ec2aab09769f4b6817d74d2175afa2b7c7598750.zip |
package.bbclass: use oe.path.realpath()
oe.path.realpath() provides are common and more correct implementation
for resolving symlinks within sysroot. Use it.
Old implementation suffered from lot of problems; e.g.
* redundant code
* calls 'os.stat()' which references files on host; this can give wrong
results about existing/non-existing and can cause EPERM (instead of
the catched ENONENT) exceptions
* does not deal with special cases like '..' leaving the sysroot.
Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/tests/test_path.py')
0 files changed, 0 insertions, 0 deletions