From ae9ebc56d42eef562caedbd406920e873315a738 Mon Sep 17 00:00:00 2001 From: Prakash Surya Date: Wed, 8 May 2024 13:09:33 -0700 Subject: [PATCH] fixup: repack --- packages/grub2/config.sh | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/packages/grub2/config.sh b/packages/grub2/config.sh index 3016ea9..d9521d3 100644 --- a/packages/grub2/config.sh +++ b/packages/grub2/config.sh @@ -54,7 +54,24 @@ function fetch() { "8d0fe5bee9380906be7006fcb069ef494f07c76f07e66ae7497cdb4e071955da" logmust tar -xvf "grub-2.12-1ubuntu7.tar.gz" - logmust cp grub-2.12-1ubuntu7/* artifacts + + for deb in grub-2.12-1ubuntu7/*; do + DIR=$(mktemp -d) + logmust cd "$DIR" + + logmust ar x "$deb" + + logmust zstd -d control.tar.xz + logmust zstd -d data.tar.xz + + # Re-create the Debian package in /tmp/ + logmust ar -m -c -a sdsd /tmp/$deb debian-binary control.tar.xz data.tar.xz + + logmust mv /tmp/$deb "$WORKDIR/artifacts" + + logmust cd - + logmust rm -r $DIR + done } function build() {