1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

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>
This commit is contained in:
Richard Purdie
2018-07-30 23:02:23 +00:00
parent ffb7fd233c
commit 099625aacf
+1 -1
View 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)