Skip to content

Commit

Permalink
Ignore subtle diff because of autotools version difference
Browse files Browse the repository at this point in the history
  • Loading branch information
mario4tier committed Dec 19, 2024
1 parent 099ffe6 commit d278790
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 7 deletions.
Binary file modified dist/ta-lib-0.6.0-src.tar.gz
Binary file not shown.
Binary file modified dist/ta-lib_0.6.0_amd64.deb
Binary file not shown.
Binary file modified dist/ta-lib_0.6.0_arm64.deb
Binary file not shown.
Binary file modified dist/ta-lib_0.6.0_x86.deb
Binary file not shown.
22 changes: 15 additions & 7 deletions scripts/utilities/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,24 @@ def compare_tar_gz_files(tar_gz_file1, tar_gz_file2) -> bool:

# Remove in both temp directory all library files.
# Only the remaining source files will be compared.
remove_lib_files_recursive(temp_extract_path1)
remove_lib_files_recursive(temp_extract_path2)

# Note: As of right now, CI and local build are deterministic for me
# with Ubuntu.
# Because of subtle difference between various
# version of autotools, ignore also a few of its
# generated files. They just "do not matter" as much.
#
# Uncomment the following if the library build is somehow
# not deterministic anymore...

# remove_lib_files_recursive(temp_extract_path1)
# remove_lib_files_recursive(temp_extract_path2)
# Source file differences are what matter the most
# 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':
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':
os.remove(os.path.join(root, file))

return compare_dir_recursive(temp_extract_path1, temp_extract_path2)

Expand Down

0 comments on commit d278790

Please sign in to comment.