]> code.ossystems Code Review - openembedded-core.git/commitdiff
Bugfix in OEs base.bbclass: files in SRC_URI which reside in WORKDIR resulted in...
authorChris Larson <kergoth@openedhand.com>
Fri, 21 Jul 2006 08:56:29 +0000 (08:56 +0000)
committerChris Larson <kergoth@openedhand.com>
Fri, 21 Jul 2006 08:56:29 +0000 (08:56 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@526 311d38ba-8fff-0310-9ca6-ca027cbcb966

openembedded/classes/base.bbclass

index 08253433e3599724f3edd408e7403e9c2352b9f5..8467ebddc221accd74bda0b4f6dedbb3574b63bd 100644 (file)
@@ -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)