diff --git a/scripts/package.py b/scripts/package.py index a78e7a34..5466b36a 100755 --- a/scripts/package.py +++ b/scripts/package.py @@ -669,6 +669,8 @@ def package_all_windows(root_dir: str, version: str): root_dir = verify_git_repo() is_updated, version = sync_versions(root_dir) is_updated, digest = sync_sources_digest(root_dir) + sys.exit(0) + host_platform = sys.platform if host_platform == "linux": package_all_linux(root_dir,version,sudo_pwd) diff --git a/scripts/utilities/versions.py b/scripts/utilities/versions.py index 22f8ba15..886d04e9 100644 --- a/scripts/utilities/versions.py +++ b/scripts/utilities/versions.py @@ -379,6 +379,10 @@ def sync_sources_digest(root_dir: str) -> Tuple[bool,str]: ] file_list = expand_globs(root_dir, file_patterns) + print(f"File list") + for file_path in file_list: + print(file_path) + # Remove duplicate entries in file_list file_list = list(set(file_list)) @@ -397,8 +401,7 @@ def sync_sources_digest(root_dir: str) -> Tuple[bool,str]: sys.exit(1) sources_hash = running_hash.hexdigest() - - + print(f"Calculated SOURCES-HASH: {sources_hash}") # Write to the SOURCES-VERSION file (touch only if different) current_digest = read_sources_digest(root_dir) @@ -406,9 +409,9 @@ def sync_sources_digest(root_dir: str) -> Tuple[bool,str]: return False, sources_hash # A difference was detected, display info to help debugging. + print(f"Difference detected") for file_path in sorted_files: print(file_path) - print(f"Calculated SOURCES-HASH: {sources_hash}") write_sources_digest(root_dir, sources_hash) return True, sources_hash \ No newline at end of file