Skip to content

Commit

Permalink
Merge pull request #826 from sever-sever/T6813-netfilter
Browse files Browse the repository at this point in the history
T6813: Add tarballs for the netfilter
  • Loading branch information
dmbaturin authored Oct 29, 2024
2 parents 09ccfe7 + 051bda1 commit d6a45cf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/package-build/netfilter/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
*.changes
*.deb
*.dsc

*.tar.gz
6 changes: 6 additions & 0 deletions scripts/package-build/netfilter/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ def build_package(package: dict, dependencies: list, patch_dir: Path) -> None:
# Apply patches if any
apply_patches(repo_dir, patch_dir, repo_name)

# 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 d6a45cf

Please sign in to comment.