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=b499f2688349694d24c4a4e53d461deeae826f5c commit b499f2688349694d24c4a4e53d461deeae826f5c Author: Guillem Jover <[email protected]> AuthorDate: Tue Sep 26 11:21:02 2023 +0200 dpkg-deb: Force deb format 0.939000 to use gzip compression The format is defined as using this compression, force its use. --- src/at/deb-format.at | 2 +- src/deb/main.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/at/deb-format.at b/src/at/deb-format.at index b3a64ffc5..215ba8ae7 100644 --- a/src/at/deb-format.at +++ b/src/at/deb-format.at @@ -32,7 +32,7 @@ cp $top_srcdir/ChangeLog.old pkg-old-templ/ chmod 0644 pkg-old-templ/ChangeLog.old 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 --deb-format=0.939000 --root-owner-group -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 diff --git a/src/deb/main.c b/src/deb/main.c index 23e06ffda..0217278d4 100644 --- a/src/deb/main.c +++ b/src/deb/main.c @@ -305,6 +305,9 @@ int main(int argc, const char *const *argv) { badusage(_("unsupported deb format '%d.%d' with non-uniform compression"), deb_format.major, deb_format.minor); + if (deb_format.major == 0) + compress_params = compress_params_deb0; + if (opt_uniform_compression && (compress_params.type != COMPRESSOR_TYPE_NONE && compress_params.type != COMPRESSOR_TYPE_GZIP && -- Dpkg.Org's dpkg

