diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-06-07 21:16:16 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-06-07 21:16:16 +0100 |
commit | 2160dddcc14d9378aff5d48ee72e3dc39b4ab8c7 (patch) | |
tree | 8f34b31b75cc3039421e03ecc41ebb9287e23ece /meta/classes/base.bbclass | |
parent | c4a0b5463d1fe7cbc605ae95e00d53cbc14903c2 (diff) | |
download | poky-2160dddcc14d9378aff5d48ee72e3dc39b4ab8c7.tar.gz |
base.bbclass: Fix after bb.decodeurl was fixed
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 4 |
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): | |||
269 | if not 'patch' in parm: | 269 | if not 'patch' in parm: |
270 | # The "destdir" handling was specifically done for FILESPATH | 270 | # The "destdir" handling was specifically done for FILESPATH |
271 | # items. So, only do so for file:// entries. | 271 | # items. So, only do so for file:// entries. |
272 | if type == "file": | 272 | if type == "file" and path.find("/") != -1: |
273 | destdir = bb.decodeurl(url)[1] or "." | 273 | destdir = path.rsplit("/", 1)[0] |
274 | else: | 274 | else: |
275 | destdir = "." | 275 | destdir = "." |
276 | bb.mkdirhier("%s/%s" % (os.getcwd(), destdir)) | 276 | bb.mkdirhier("%s/%s" % (os.getcwd(), destdir)) |