This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=c244695522743e912b521bed6851d3700028b4f3

commit c244695522743e912b521bed6851d3700028b4f3
Author: Guillem Jover <[email protected]>
AuthorDate: Sat May 13 20:55:30 2023 +0200

    test: Generate the pkg-old.deb from controlled parts
    
    To be able to make the tests independent of the compression libraries
    and programs used we need to control the sizes being used when
    generating them.
---
 src/at/deb-format.at | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/at/deb-format.at b/src/at/deb-format.at
index 56f5349e8..1ff5095bf 100644
--- a/src/at/deb-format.at
+++ b/src/at/deb-format.at
@@ -34,11 +34,16 @@ chmod -R u+w pkg-old-templ
 find pkg-old-templ | xargs touch -t 197001010100.00
 dpkg-deb --deb-format=0.939000 --root-owner-group -Zgzip -b pkg-old-templ 
>/dev/null
 
+dpkg-deb --ctrl-tarfile pkg-old-templ.deb >ctrl.tar
 dpkg-deb --fsys-tarfile pkg-old-templ.deb >fsys.tar
+gzip -n ctrl.tar
 gzip -n fsys.tar
 
 # Create deb-old 0.939
-cp pkg-old-templ.deb pkg-old.deb
+echo '0.939000' >pkg-old.deb
+DPKG_FILE_SIZE([ctrl.tar.gz]) >>pkg-old.deb
+cat ctrl.tar.gz >>pkg-old.deb
+cat fsys.tar.gz >>pkg-old.deb
 
 # Create deb-old-old-old 0.931
 mkdir -p pkg-old-0931-templ/.DEBIAN

-- 
Dpkg.Org's dpkg

Reply via email to