[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH v2 00/13] compression code refactoring and error handling fixes



Hi dpkg team,

These patches clean up the libdpkg compression code a bit and make the
errors from dpkg-deb on compression errors a little more sane (no more
mysterious errors ending with ": Success").  Although they are not
strictly necessary for liblzma support, they helped my sanity in
preparing it.

This is a separate series because the liblzma support patch series was
getting a little long.  I imagine these could be reviewed separately.

I hope you like them.

Regards,
Jonathan

Jonathan Nieder (13):
  libdpkg: fix misspelling of __attribute__((const))
  libdpkg: Reduce scope of combuf[] in compress_cat
  libdpkg: factor out common gzip, bzip2 code
  libdpkg: fix redundant compression error messages
  libdpkg: fix compress_cat to allow I/O to files
  libdpkg: report read errors during (de)compression
  libdpkg: compression: do not handle EINTR
  libdpkg: check for write errors during decompression
  libdpkg: factor out function to execute compressors
  libdpkg: reorder internal fd_fd_filter() function arguments
  libdpkg: simplify code to calculate compression options
  libdpkg: compression: move each format's code into its own function
  libdpkg: compression: check for output errors closing files

 lib/dpkg/Makefile.am           |    1 +
 lib/dpkg/compression-backend.c |  248 ++++++++++++++++++++++++++++++++++++++++
 lib/dpkg/compression-backend.h |   35 ++++++
 lib/dpkg/compression.c         |  163 ++------------------------
 lib/dpkg/macros.h              |    2 +-
 5 files changed, 296 insertions(+), 153 deletions(-)
 create mode 100644 lib/dpkg/compression-backend.c
 create mode 100644 lib/dpkg/compression-backend.h


Reply to: