|
|
@@ -107,6 +107,7 @@ usage(const struct cmdinfo *cip, const char *value)
|
|
|
" --new Legacy alias for '--deb-format=2.0'.\n"
|
|
|
" --nocheck Suppress control file check (build bad\n"
|
|
|
" packages).\n"
|
|
|
+" --uniform-compression Use the compression params on all members.\n"
|
|
|
" -z# Set the compression level when building.\n"
|
|
|
" -Z<type> Set the compression type used when building.\n"
|
|
|
" Allowed types: gzip, xz, bzip2, none.\n"
|
|
|
@@ -142,6 +143,7 @@ static const char printforhelp[] =
|
|
|
int debugflag = 0;
|
|
|
int nocheckflag = 0;
|
|
|
int opt_verbose = 0;
|
|
|
+int opt_uniform_compression = 0;
|
|
|
|
|
|
struct deb_version deb_format = DEB_VERSION(2, 0);
|
|
|
|
|
|
@@ -233,6 +235,7 @@ static const struct cmdinfo cmdinfos[]= {
|
|
|
{ "debug", 'D', 0, &debugflag, NULL, NULL, 1 },
|
|
|
{ "verbose", 'v', 0, &opt_verbose, NULL, NULL, 1 },
|
|
|
{ "nocheck", 0, 0, &nocheckflag, NULL, NULL, 1 },
|
|
|
+ { "uniform-compression", 0, 0, &opt_uniform_compression, NULL, NULL, 1 },
|
|
|
{ NULL, 'z', 1, NULL, NULL, set_compress_level },
|
|
|
{ NULL, 'Z', 1, NULL, NULL, set_compress_type },
|
|
|
{ NULL, 'S', 1, NULL, NULL, set_compress_strategy },
|
|
|
@@ -255,6 +258,13 @@ 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 &&
|
|
|
+ (compress_params.type != compressor_type_none &&
|
|
|
+ compress_params.type != compressor_type_gzip &&
|
|
|
+ compress_params.type != compressor_type_xz))
|
|
|
+ badusage(_("unsupported compression type '%s' with uniform compression"),
|
|
|
+ compressor_get_name(compress_params.type));
|
|
|
+
|
|
|
ret = cipaction->action(argv);
|
|
|
|
|
|
dpkg_program_done();
|