diff options
author | Guillem Jover <guillem@debian.org> | 2014-01-13 01:48:28 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-04-21 17:00:28 +0200 |
commit | 9c049f43b8597ae6241f52aceee0647a4b2c79f3 (patch) | |
tree | 83ec1fe79dc84d42fb8d6315a2ff2613000d7bda /dpkg-deb | |
parent | 15e690628d282badc1a7dd5ecf27012c5f9fefa9 (diff) | |
download | dpkg-9c049f43b8597ae6241f52aceee0647a4b2c79f3.tar.gz |
dpkg-deb: Deprecate compressing .deb files with bzip2
This compressor has been superseded by xz when it comes to compression
ratio, and in cases where higher compatibility or raw speed is desired
gzip is still the better option.
Issue a warning for now for the -Zbzip2 option value, the support for
that value will get disabled at a later point.
Diffstat (limited to 'dpkg-deb')
-rw-r--r-- | dpkg-deb/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dpkg-deb/main.c b/dpkg-deb/main.c index 15edd223e..0815f91d3 100644 --- a/dpkg-deb/main.c +++ b/dpkg-deb/main.c @@ -215,6 +215,8 @@ set_compress_type(const struct cmdinfo *cip, const char *value) ohshit(_("unknown compression type `%s'!"), value); if (compress_params.type == compressor_type_lzma) warning(_("deprecated compression type '%s'; use xz instead"), value); + if (compress_params.type == compressor_type_bzip2) + warning(_("deprecated compression type '%s'; use xz or gzip instead"), value); } static const struct cmdinfo cmdinfos[]= { |