summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-30 23:02:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-31 22:42:03 +0100
commit28eeada955762f38ccbd1d26c53768364dbd1a5e (patch)
treeea22f488a637dce830c4789a656f776e9947c790 /meta/classes/package.bbclass
parent41356d2c86d85b199962c3024f25361a709d9180 (diff)
downloadopenembedded-core-28eeada955762f38ccbd1d26c53768364dbd1a5e.tar.gz
package.bbclass: Fix hardlink preservation issue
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>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 80233a8f5e..8459d39b27 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -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)