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>
# 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)