summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openembedded/classes/base.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/openembedded/classes/base.bbclass b/openembedded/classes/base.bbclass
index 08253433e3..8467ebddc2 100644
--- a/openembedded/classes/base.bbclass
+++ b/openembedded/classes/base.bbclass
@@ -400,6 +400,13 @@ def oe_unpack_file(file, data, url = None):
400 cmd = 'cp %s %s/%s/' % (file, os.getcwd(), destdir) 400 cmd = 'cp %s %s/%s/' % (file, os.getcwd(), destdir)
401 if not cmd: 401 if not cmd:
402 return True 402 return True
403
404
405 dest = os.path.join(os.getcwd(), os.path.basename(file))
406 if os.path.exists(dest):
407 if os.path.samefile(file, dest):
408 return True
409
403 cmd = "PATH=\"%s\" %s" % (bb.data.getVar('PATH', data, 1), cmd) 410 cmd = "PATH=\"%s\" %s" % (bb.data.getVar('PATH', data, 1), cmd)
404 bb.note("Unpacking %s to %s/" % (file, os.getcwd())) 411 bb.note("Unpacking %s to %s/" % (file, os.getcwd()))
405 ret = os.system(cmd) 412 ret = os.system(cmd)