libdpkg: Abstract compression stream status tracking
commitda2a72dd681092ddc59df5bd98784b7f876c0a3e
authorGuillem Jover <guillem@debian.org>
Mon, 9 Jan 2023 00:01:51 +0000 (9 01:01 +0100)
committerGuillem Jover <guillem@debian.org>
Tue, 10 Jan 2023 12:23:19 +0000 (10 13:23 +0100)
tree33f18bb2255880ab5d2bafd79b658109227f92b0
parent64e1d8cbf74f751f340cea25c45c7e6d0c5d7765
libdpkg: Abstract compression stream status tracking

Use a new enum dpkg_stream_status to track the stream status, instead of
using the liblzma codes directly in the I/O loop, which will make it
possible in the future to generalize and use a single loop for all
compressors.
lib/dpkg/compress.c