summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-08-19 14:20:09 +0100
committerGitHub <noreply@github.com>2025-08-19 14:20:09 +0100
commit05f0a675a09fea4415bf4aa3fbf524ed1c27d719 (patch)
tree528fd61854e188d86369b2740a4a1bad47dc1d4a /scripts
parentaf786abcf8aae1a714df70b47016c76a07c4b6f2 (diff)
parent896c4b28f0450db92e73a4f01451d6cabc09ddb5 (diff)
downloadvyos-build-05f0a675a09fea4415bf4aa3fbf524ed1c27d719.tar.gz
vyos-build-05f0a675a09fea4415bf4aa3fbf524ed1c27d719.zip
Merge pull request #1007 from sever-sever/T7714
T7714: Exclude auxiliary directories from common tarballs
Diffstat (limited to 'scripts')
-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