copyleft_compliance: force the symlink creation
authorChristopher Larson <chris_larson@mentor.com>
Mon, 31 Dec 2012 18:47:36 +0000 (12:47 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 7 Jan 2013 14:43:24 +0000 (14:43 +0000)
(From OE-Core rev: 74b82fd4cc3e5eec611800935f1c89db3bac9971)

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Gilbert Coville <gilbert_coville@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/copyleft_compliance.bbclass

index 786cf1e..06b0227 100644 (file)
@@ -45,7 +45,7 @@ python do_prepare_copyleft_sources () {
             if os.path.exists(tarball_path):
                 local = tarball_path
 
-        os.symlink(local, os.path.join(dest, os.path.basename(local)))
+        oe.path.symlink(local, os.path.join(dest, os.path.basename(local)), force=True)
 
     patches = src_patches(d)
     for patch in patches: