]> code.ossystems Code Review - openembedded-core.git/commitdiff
lib/oe/package.py: use bb.utils.break_hardlinks helper
authorRasmus Villemoes <rv@rasmusvillemoes.dk>
Tue, 21 Aug 2018 10:01:45 +0000 (12:01 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 23 Aug 2018 08:04:23 +0000 (09:04 +0100)
This does the same thing, but is more efficient in case st_nlinks
is (already) 1.

Depends on bitbake commit 7ae93cf40ab91965147055100432961436bce46c .

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package.py

index 21c80aaa3853bf759daa0619d24514c62740b365..efd36b3758d5845d668f423076753bf1a866cabe 100644 (file)
@@ -159,7 +159,7 @@ def strip_execs(pn, dstdir, strip_cmd, libdir, base_libdir, d, qa_already_stripp
                     else:
                         # break hardlinks so that we do not strip the original.
                         inodes[inodecache[file]] = file
-                        bb.utils.copyfile(file, file)
+                        bb.utils.break_hardlinks(file)
                         elffiles[file] = elf_file
 
     #