summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-06-07 21:16:16 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-06-07 21:16:16 +0100
commit2160dddcc14d9378aff5d48ee72e3dc39b4ab8c7 (patch)
tree8f34b31b75cc3039421e03ecc41ebb9287e23ece /meta
parentc4a0b5463d1fe7cbc605ae95e00d53cbc14903c2 (diff)
downloadopenembedded-core-2160dddcc14d9378aff5d48ee72e3dc39b4ab8c7.tar.gz
openembedded-core-2160dddcc14d9378aff5d48ee72e3dc39b4ab8c7.tar.bz2
openembedded-core-2160dddcc14d9378aff5d48ee72e3dc39b4ab8c7.zip
base.bbclass: Fix after bb.decodeurl was fixed
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 5594bb72d3..a67555dc68 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -269,8 +269,8 @@ def oe_unpack_file(file, data, url = None):
if not 'patch' in parm:
# The "destdir" handling was specifically done for FILESPATH
# items. So, only do so for file:// entries.
- if type == "file":
- destdir = bb.decodeurl(url)[1] or "."
+ if type == "file" and path.find("/") != -1:
+ destdir = path.rsplit("/", 1)[0]
else:
destdir = "."
bb.mkdirhier("%s/%s" % (os.getcwd(), destdir))