Skip to content

Commit 2b7028e

Browse files
committed
improve logging for inode collissions
Signed-off-by: Zen <[email protected]>
1 parent 9df2cfa commit 2b7028e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pycpio/cpio/archive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ def _update_inodes(self, entry):
5555
if it's a hardlink, remove the data in the copy.
5656
"""
5757
if entry.header.ino in self.inodes:
58+
self.logger.log(5, "[%s] Inode already exists: %s" % (entry.header.name, entry.header.ino))
5859
if isinstance(entry, CPIO_File) and self[self.inodes[entry.header.ino][0]].data == entry.data:
5960
self.logger.info("[%s] New hardlink detected, removing data." % entry.header.name)
6061
# Remove the data from the current entry

0 commit comments

Comments
 (0)