base.bbclass: Fix after bb.decodeurl was fixed
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
c4a0b5463d
commit
2160dddcc1
|
@ -269,8 +269,8 @@ def oe_unpack_file(file, data, url = None):
|
||||||
if not 'patch' in parm:
|
if not 'patch' in parm:
|
||||||
# The "destdir" handling was specifically done for FILESPATH
|
# The "destdir" handling was specifically done for FILESPATH
|
||||||
# items. So, only do so for file:// entries.
|
# items. So, only do so for file:// entries.
|
||||||
if type == "file":
|
if type == "file" and path.find("/") != -1:
|
||||||
destdir = bb.decodeurl(url)[1] or "."
|
destdir = path.rsplit("/", 1)[0]
|
||||||
else:
|
else:
|
||||||
destdir = "."
|
destdir = "."
|
||||||
bb.mkdirhier("%s/%s" % (os.getcwd(), destdir))
|
bb.mkdirhier("%s/%s" % (os.getcwd(), destdir))
|
||||||
|
|
Loading…
Reference in New Issue