[OE-core] [PATCH] package.bbclass: search for dangling links in installation directory

Enrico Scholz enrico.scholz at sigma-chemnitz.de
Sun Oct 14 09:51:40 UTC 2012


Chris Larson <clarson-ZYzTKstmaoRBDgjK7y7TUQ at public.gmane.org> 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'.  I could play around
with mangling 'target' through normpath() or lstrip()'ing the '/'.

But concatening the two paths is the best solution because I know that
'target' is absolute and starts with the dir delimiter.


Enrico




More information about the Openembedded-core mailing list