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
This commit is contained in:
parent
1b95f50498
commit
37764d23d0
|
@ -400,6 +400,13 @@ def oe_unpack_file(file, data, url = None):
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue