Skip to content

Commit

Permalink
add debug msgs
Browse files Browse the repository at this point in the history
  • Loading branch information
jgleissner committed Oct 26, 2023
1 parent 43dafd6 commit f3380d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kiwi_keg/tools/compose_kiwi_description.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,14 +370,18 @@ def files_equivalent(filename, dir1, dir2, ignore_kiwi_version):
path2 = os.path.join(dir2, filename)

if not os.path.exists(path1) or not os.path.exists(path2):
log.info('at least one file does not exists')
return False

if filename.endswith('.kiwi'):
log.info('file is kiwi')
return kiwi_files_equivalent(path1, path2, ignore_kiwi_version)

if 'tar' in filename.split('.'):
log.info('file is tar')
return tar_files_equivalent(path1, path2)

log.info('file is other')
return filecmp.cmp(path1, path2)


Expand Down

0 comments on commit f3380d0

Please sign in to comment.