[oe-commits] [openembedded-core] 02/32: lib/oe/package.py: use bb.utils.break_hardlinks helper

git at git.openembedded.org git at git.openembedded.org
Wed Aug 22 12:50:51 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit be480a92bf8fb63289b4f2544fb37ce5a9c264c1
Author: Rasmus Villemoes <rv at rasmusvillemoes.dk>
AuthorDate: Tue Aug 21 12:01:45 2018 +0200

    lib/oe/package.py: use bb.utils.break_hardlinks helper
    
    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 at rasmusvillemoes.dk>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oe/package.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oe/package.py b/meta/lib/oe/package.py
index 21c80aa..efd36b3 100644
--- a/meta/lib/oe/package.py
+++ b/meta/lib/oe/package.py
@@ -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
 
     #

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list