diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-30 23:02:23 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-31 22:42:03 +0100 |
commit | 28eeada955762f38ccbd1d26c53768364dbd1a5e (patch) | |
tree | ea22f488a637dce830c4789a656f776e9947c790 | |
parent | 41356d2c86d85b199962c3024f25361a709d9180 (diff) | |
download | openembedded-core-28eeada955762f38ccbd1d26c53768364dbd1a5e.tar.gz openembedded-core-28eeada955762f38ccbd1d26c53768364dbd1a5e.tar.bz2 openembedded-core-28eeada955762f38ccbd1d26c53768364dbd1a5e.zip |
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>
-rw-r--r-- | meta/classes/package.bbclass | 2 |
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) |