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=3db758d7c80273b3ef46447048c51c917278957e

commit 3db758d7c80273b3ef46447048c51c917278957e
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Thu Oct 12 06:06:49 2023 +0200

    dpkg-deb: Reject --no-uniform-compression with format 0.939000
    
    This format has never supported non-uniform compression. Report it
    instead of letting the user think the operation succeeded.
---
 src/deb/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/deb/main.c b/src/deb/main.c
index 7d08a670c..dbf325ba0 100644
--- a/src/deb/main.c
+++ b/src/deb/main.c
@@ -294,6 +294,10 @@ int main(int argc, const char *const *argv) {
   if (!compressor_check_params(&compress_params, &err))
     badusage(_("invalid compressor parameters: %s"), err.str);
 
+  if (!opt_uniform_compression && deb_format.major == 0)
+    badusage(_("unsupported deb format '%d.%d' with non-uniform compression"),
+             deb_format.major, deb_format.minor);
+
   if (opt_uniform_compression &&
       (compress_params.type != COMPRESSOR_TYPE_NONE &&
        compress_params.type != COMPRESSOR_TYPE_GZIP &&

-- 
Dpkg.Org's dpkg

Reply via email to