Skip to content

Commit

Permalink
Merge pull request #821 from sever-sever/T6813
Browse files Browse the repository at this point in the history
T6813: Build tarballs for the packages
  • Loading branch information
dmbaturin authored Oct 24, 2024
2 parents 1807ded + b955b11 commit 45e583b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/package-build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ def build_package(package: list, dependencies: list, patch_dir: Path) -> None:
if (repo_dir / 'patches'):
apply_patches(repo_dir, patch_dir)

# Sanitize the commit ID and build a tarball for the package
commit_id_sanitized = package['commit_id'].replace('/', '_')
tarball_name = f"{repo_name}_{commit_id_sanitized}.tar.gz"
run(['tar', '-czf', tarball_name, '-C', str(repo_dir.parent), repo_name], check=True)
print(f"I: Tarball created: {tarball_name}")

# Prepare the package if required
if package.get('prepare_package', False):
prepare_package(repo_dir, package.get('install_data', ''))
Expand Down

0 comments on commit 45e583b

Please sign in to comment.