]> code.ossystems Code Review - openembedded-core.git/commit
lib: implemented oe.path.realpath()
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>
Sun, 10 Feb 2013 12:41:46 +0000 (13:41 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Feb 2013 14:45:37 +0000 (14:45 +0000)
commit76e0bd7f8e3a3bd052a6e329f88e2d8099e899c4
tree00dccd24ac141a8121eb16caca73e8fe3146df30
parentec2aab09769f4b6817d74d2175afa2b7c7598750
lib: implemented oe.path.realpath()

Various parts of the buildsystem have to work with symlinks. Resolving
them is not trivial because they are always relative to a sysroot
directory.

Patch adds a function which returns the destination of a symlink by
assuming a given path as the / toplevel directory.  A testsuite was
added too.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/path.py
meta/lib/oe/tests/test_path.py [new file with mode: 0644]