summaryrefslogtreecommitdiff
path: root/dpkg-deb
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2017-09-26 03:32:42 +0200
committerGuillem Jover <guillem@debian.org>2017-10-16 11:04:28 +0200
commitb95681f0ad831c2bacb25bd25ee220fb58f78466 (patch)
treeb0f22a1878e2ddce80fc79af03c191bbcb65af85 /dpkg-deb
parent08c15e1b795d2468798c43330ca5426e10487cbc (diff)
downloaddpkg-b95681f0ad831c2bacb25bd25ee220fb58f78466.tar.gz
dpkg-deb: Make --uniform-compression the new default behavior
Add support for negating the option via --no-uniform-compression.
Diffstat (limited to 'dpkg-deb')
-rw-r--r--dpkg-deb/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c
index 1f2143b4e..52e9ce67d 100644
--- a/dpkg-deb/main.c
+++ b/dpkg-deb/main.c
@@ -105,7 +105,7 @@ usage(const struct cmdinfo *cip, const char *value)
" --nocheck Suppress control file check (build bad\n"
" packages).\n"
" --root-owner-group Forces the owner and groups to root.\n"
-" --uniform-compression Use the compression params on all members.\n"
+" --[no-]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, none.\n"
@@ -142,7 +142,7 @@ int debugflag = 0;
int nocheckflag = 0;
int opt_verbose = 0;
int opt_root_owner_group = 0;
-int opt_uniform_compression = 0;
+int opt_uniform_compression = 1;
struct deb_version deb_format = DEB_VERSION(2, 0);
@@ -219,6 +219,7 @@ static const struct cmdinfo cmdinfos[]= {
{ "nocheck", 0, 0, &nocheckflag, NULL, NULL, 1 },
{ "root-owner-group", 0, 0, &opt_root_owner_group, NULL, NULL, 1 },
{ "uniform-compression", 0, 0, &opt_uniform_compression, NULL, NULL, 1 },
+ { "no-uniform-compression", 0, 0, &opt_uniform_compression, NULL, NULL, 0 },
{ NULL, 'z', 1, NULL, NULL, set_compress_level },
{ NULL, 'Z', 1, NULL, NULL, set_compress_type },
{ NULL, 'S', 1, NULL, NULL, set_compress_strategy },