From 33a2bb70562ae87235c9be95722a963129a13a38 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 20:42:28 +0200 Subject: Adding upstream version 1.22.6. Signed-off-by: Daniel Baumann --- src/deb/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/deb') diff --git a/src/deb/main.c b/src/deb/main.c index 0217278..2c53811 100644 --- a/src/deb/main.c +++ b/src/deb/main.c @@ -298,9 +298,6 @@ int main(int argc, const char *const *argv) { if (!cipaction) badusage(_("need an action option")); - 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); @@ -308,6 +305,9 @@ int main(int argc, const char *const *argv) { if (deb_format.major == 0) compress_params = compress_params_deb0; + if (!compressor_check_params(&compress_params, &err)) + badusage(_("invalid compressor parameters: %s"), err.str); + if (opt_uniform_compression && (compress_params.type != COMPRESSOR_TYPE_NONE && compress_params.type != COMPRESSOR_TYPE_GZIP && -- cgit v1.2.3