base.bbclass: fix bug with absolute file:// uris
authorChris Larson <chris_larson@mentor.com>
Mon, 30 Aug 2010 23:43:31 +0000 (16:43 -0700)
committerChris Larson <chris_larson@mentor.com>
Mon, 30 Aug 2010 23:43:32 +0000 (16:43 -0700)
commit599b03fe999d41114d124ce663b6c59fa57256d8
treeff1c067cb3c0e1d26d42f093a4420683763bae5b
parent7ec84b10a33241350d53efe50b7ca31bdecb2204
base.bbclass: fix bug with absolute file:// uris

The code which used host/path from the url to construct the destination of the
copy was using os.path.join.  os.path.join treats a "/" in an element as an
indication to drop all previous elements, so the full path resulted in a
destination exactly the same as the source, resulting in a no-op unpack.
Fixed by using oe.path.join instead.

Signed-off-by: Chris Larson <chris_larson@mentor.com>
classes/base.bbclass