diff options
author | Florian Boor <florian.boor@kernelconcepts.de> | 2006-07-28 11:32:53 +0000 |
---|---|---|
committer | Florian Boor <florian.boor@kernelconcepts.de> | 2006-07-28 11:32:53 +0000 |
commit | 1287e38077fece73a2d0887c63bc869cf5c516c1 (patch) | |
tree | 6fdb2770b7b99b365c36ea40d9877ee17868f43e /classes | |
parent | f4008ca823bfbb7c33d92008137ff78cc6907f17 (diff) | |
parent | 39dba3e0ec9b72c5394d9ec669e68ecd87e23658 (diff) |
merge of 23f392c4a32f829ba2c33998e47b14cc08c51a26
and a5ef4c4c70b547e6337fc06d8e0f67f7be568250
Diffstat (limited to 'classes')
-rw-r--r-- | classes/base.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass index 49d6260090..85756edacd 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -398,8 +398,15 @@ def oe_unpack_file(file, data, url = None): destdir = "." bb.mkdirhier("%s/%s" % (os.getcwd(), destdir)) cmd = 'cp %s %s/%s/' % (file, os.getcwd(), destdir) + if not cmd: return True + + dest = os.path.join(os.getcwd(), os.path.basename(file)) + if os.path.exists(dest): + if os.path.samefile(file, dest): + return True + cmd = "PATH=\"%s\" %s" % (bb.data.getVar('PATH', data, 1), cmd) bb.note("Unpacking %s to %s/" % (file, os.getcwd())) ret = os.system(cmd) |