summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2025-08-13 11:16:11 +0000
committerViacheslav <v.gletenko@vyos.io>2025-08-14 16:10:51 +0000
commit896c4b28f0450db92e73a4f01451d6cabc09ddb5 (patch)
tree531e01451d2658da2323101208526579497e5dbf
parent65cc12735ae8b435955e4ccf4f5ad0e1e2e99786 (diff)
downloadvyos-build-896c4b28f0450db92e73a4f01451d6cabc09ddb5.tar.gz
vyos-build-896c4b28f0450db92e73a4f01451d6cabc09ddb5.zip
T7714: Exclude auxiliary directories from common tarballs
-rwxr-xr-xscripts/package-build/build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/package-build/build.py b/scripts/package-build/build.py
index 2eceea93..0d5242e2 100755
--- a/scripts/package-build/build.py
+++ b/scripts/package-build/build.py
@@ -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