diff options
author | Chris Larson <kergoth@openedhand.com> | 2006-07-21 08:56:29 +0000 |
---|---|---|
committer | Chris Larson <kergoth@openedhand.com> | 2006-07-21 08:56:29 +0000 |
commit | 37764d23d0ca36ed6eb85506a2b593f4a18a0b7c (patch) | |
tree | 51ca92d42ad4a2bc1a71af71567dae662576caf0 | |
parent | 1b95f50498de4081fc18ba588f0073b344bb3c73 (diff) | |
download | poky-37764d23d0ca36ed6eb85506a2b593f4a18a0b7c.tar.gz |
Bugfix in OEs base.bbclass: files in SRC_URI which reside in WORKDIR resulted in a failure. With this bug fixed, patches within tarballs can be successfully applied to ${S}.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@526 311d38ba-8fff-0310-9ca6-ca027cbcb966
-rw-r--r-- | openembedded/classes/base.bbclass | 7 |
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) |