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:47:35 +0100 |
commit | 099625aacf9064d90c6015bde80e223ba1bf2512 (patch) | |
tree | 234f25b2915a46fb74b548e8e27d6c67d116a032 | |
parent | ffb7fd233ce23af06b54bee5b934f7d01271da97 (diff) | |
download | poky-099625aacf9064d90c6015bde80e223ba1bf2512.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).
(From OE-Core rev: 28eeada955762f38ccbd1d26c53768364dbd1a5e)
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 () { | |||
1021 | # c) Track any hardlinks between files so that we can reconstruct matching debug file hardlinks | 1021 | # c) Track any hardlinks between files so that we can reconstruct matching debug file hardlinks |
1022 | 1022 | ||
1023 | # Use a reference of device ID and inode number to identify files | 1023 | # Use a reference of device ID and inode number to identify files |
1024 | file_reference = checkelf[file] | 1024 | file_reference = checkelf[file][1] |
1025 | if file_reference in inodes: | 1025 | if file_reference in inodes: |
1026 | os.unlink(file) | 1026 | os.unlink(file) |
1027 | os.link(inodes[file_reference][0], file) | 1027 | os.link(inodes[file_reference][0], file) |