On Sun, 2012-10-14 at 11:51 +0200, Enrico Scholz wrote:
> Chris Larson <[email protected]> writes:
>
> >> + # make path absolute; do not use os.path.join() here
> >> + # because target might start with multiple '/'
> >> + rtarget = inst_root + target
> >
> > I think you can use the join()
>
> no; I used it in an earlier version of the patch
>
> rtarget = os.path.join(inst_root, target[1:])
>
> and this fails for links like '//sbin/systemd'.
You somehow chopped off the important part of Chris's text. What he
actually wrote was "... the join() which is in the oe python package",
which is not the same as os.path.join.
As the comment says, it is...
"""Like os.path.join but doesn't treat absolute RHS specially"""
p.
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core