Skip to content

Commit a6fd424

Browse files
bordeuxclaude
andcommitted
fix: add --cut flag to abuild-tar for control and data tars
The --cut flag removes end-of-archive markers which were causing excessive padding in the tar output (11264 bytes vs ~2048 bytes). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b8b2060 commit a6fd424

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/generate_repo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def rebuild_apk_with_abuild(apk_path: Path, private_key: Optional[Path] = None,
332332
data_tar_gz = tmpdir / "data.tar.gz"
333333

334334
tar_cmd = ["tar", "-C", str(data_dir), "-cf", "-", "."]
335-
abuild_tar_cmd = ["abuild-tar", "--hash"]
335+
abuild_tar_cmd = ["abuild-tar", "--hash", "--cut"]
336336

337337
with open(data_tar, "wb") as out_file:
338338
tar_proc = subprocess.Popen(tar_cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)
@@ -362,7 +362,7 @@ def rebuild_apk_with_abuild(apk_path: Path, private_key: Optional[Path] = None,
362362
control_tar_gz = tmpdir / "control.tar.gz"
363363

364364
tar_cmd = ["tar", "-C", str(control_dir), "-cf", "-", ".PKGINFO"]
365-
abuild_tar_cmd = ["abuild-tar", "--hash"]
365+
abuild_tar_cmd = ["abuild-tar", "--hash", "--cut"]
366366

367367
with open(control_tar, "wb") as out_file:
368368
tar_proc = subprocess.Popen(tar_cmd, stdout=subprocess.PIPE, stderr=subprocess.DEVNULL)

0 commit comments

Comments
 (0)