]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Fix hardlink preservation issue
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jul 2018 23:02:23 +0000 (23:02 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 31 Jul 2018 21:42:03 +0000 (22:42 +0100)
Recent changes broke the preservation of hardlinks during processing due to a missing index.
Fix this, reducing the size of the git recipe packages in particular (it contains many hardlinks).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package.bbclass

index 80233a8f5e8133e5a67fcb2a9a3f72e4669b6a9a..8459d39b27eb9577c185373f1830ee24763cd826 100644 (file)
@@ -1021,7 +1021,7 @@ python split_and_strip_files () {
                 #  c) Track any hardlinks between files so that we can reconstruct matching debug file hardlinks
 
                 # Use a reference of device ID and inode number to identify files
-                file_reference = checkelf[file]
+                file_reference = checkelf[file][1]
                 if file_reference in inodes:
                     os.unlink(file)
                     os.link(inodes[file_reference][0], file)