mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
T6813: Add tarballs for the netfilter
This commit is contained in:
parent
09ccfe7a70
commit
051bda1f2b
2
scripts/package-build/netfilter/.gitignore
vendored
2
scripts/package-build/netfilter/.gitignore
vendored
@ -5,4 +5,4 @@
|
||||
*.changes
|
||||
*.deb
|
||||
*.dsc
|
||||
|
||||
*.tar.gz
|
||||
|
||||
@ -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', ''))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user