]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: use bb.utils.break_hardlinks helper
authorRasmus Villemoes <rv@rasmusvillemoes.dk>
Tue, 21 Aug 2018 10:01:44 +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/classes/package.bbclass

index 323ba051ae028abdea6071c84a168dacbca63bf1..df9aacb237b566a10b711a4f28be5ab915b97605 100644 (file)
@@ -1024,7 +1024,7 @@ python split_and_strip_files () {
                 else:
                     inodes[file_reference] = [file]
                     # break hardlink
-                    bb.utils.copyfile(file, file)
+                    bb.utils.break_hardlinks(file)
                     elffiles[file] = elf_file
                 # Modified the file so clear the cache
                 cpath.updatecache(file)