diff options
Diffstat (limited to 'classes/base.bbclass')
-rw-r--r-- | classes/base.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index e94e331fb4..c5b7ede8d0 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -361,7 +361,12 @@ def oe_unpack_file(file, data, url = None): else: (type, host, path, user, pswd, parm) = bb.decodeurl(url) if not 'patch' in parm: - destdir = bb.decodeurl(url)[1] or "." + # 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 "." + else: + destdir = "." bb.mkdirhier("%s/%s" % (os.getcwd(), destdir)) cmd = 'cp %s %s/%s/' % (file, os.getcwd(), destdir) if not cmd: |