summaryrefslogtreecommitdiffstats
path: root/src/deb
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:42:36 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-15 18:42:36 +0000
commitf3cd649313063ef9d72a3a4a0ab5b4af598c8c9f (patch)
tree47e771e246377a3ee1211bdb2238e090970d6c24 /src/deb
parentReleasing progress-linux version 1.22.5-0.0~progress7.99u1. (diff)
downloaddpkg-f3cd649313063ef9d72a3a4a0ab5b4af598c8c9f.tar.xz
dpkg-f3cd649313063ef9d72a3a4a0ab5b4af598c8c9f.zip
Merging upstream version 1.22.6.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/deb')
-rw-r--r--src/deb/main.c6
1 files changed, 3 insertions, 3 deletions
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 &&