Skip to content

Commit

Permalink
CI - Ignore .m4 diff when comparing tar.gz packages
Browse files Browse the repository at this point in the history
  • Loading branch information
mario4tier committed Dec 19, 2024
1 parent 0dfa913 commit c7d324a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/utilities/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,12 @@ def compare_tar_gz_files(tar_gz_file1, tar_gz_file2) -> bool:
# to trig re-packaging.
for root, dirs, files in os.walk(temp_extract_path1):
for file in files:
if file == 'Makefile.in' or file == 'configure' or file == 'ltmain.sh':
if file == 'Makefile.in' or file == 'configure' or file == 'ltmain.sh' or file.endswith('.m4'):
os.remove(os.path.join(root, file))

for root, dirs, files in os.walk(temp_extract_path2):
for file in files:
if file == 'Makefile.in' or file == 'configure' or file == 'ltmain.sh':
if file == 'Makefile.in' or file == 'configure' or file == 'ltmain.sh' or file.endswith('.m4'):
os.remove(os.path.join(root, file))

return compare_dir_recursive(temp_extract_path1, temp_extract_path2)
Expand Down

0 comments on commit c7d324a

Please sign in to comment.