mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
T7714: Exclude auxiliary directories from common tarballs
This commit is contained in:
parent
65cc12735a
commit
896c4b28f0
@ -140,7 +140,7 @@ def build_package(package: list, patch_dir: Path) -> None:
|
||||
# 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)
|
||||
run(['tar', '--exclude=.git', '--exclude=.github', '-czf', tarball_name, '-C', str(repo_dir.parent), repo_name], check=True)
|
||||
print(f"I: Tarball created: {tarball_name}")
|
||||
|
||||
# Prepare the package if required
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user