]> err.no Git - dpkg/commit
Create Dpkg::Source::CompressedFile as spinoff of Dpkg::Source::Compressor
authorRaphael Hertzog <hertzog@debian.org>
Wed, 20 Feb 2008 23:12:40 +0000 (00:12 +0100)
committerRaphael Hertzog <hertzog@debian.org>
Wed, 20 Feb 2008 23:12:40 +0000 (00:12 +0100)
commit1d37bbf2b713fbc3aa89554016a2a81aaaa248f2
tree3742f48457e95f240ecedd963d6024c7ed6c87b1
parentdec4b74c5838663d25f49870b7c282bfe565bf7c
Create Dpkg::Source::CompressedFile as spinoff of Dpkg::Source::Compressor

* scripts/Dpkg/Source/Compressor.pm: Drom from this object
all filename related code and move it ...
* scripts/Dpkg/Source/CompressedFile.pm: ...here. This
object is a named file and it handles either explicit
compression (call to set_compression()) or implicit compression
(compression type is guessed from the filename). It offers
open_for_write() and open_for_read() to write into/read from
a data stream that is compressed/uncompressed on the fly.
* scripts/Dpkg/Source/Archiver.pm: Make it based on
CompressedFile and simplify code.
* scripts/dpkg-source.pl: Adapt code to the new interface of
the Compressor object.
* scripts/Makefile.am, scripts/po/POTFILES.in: register new
file CompressedFile.pm.
scripts/Dpkg/Source/Archiver.pm
scripts/Dpkg/Source/CompressedFile.pm [new file with mode: 0644]
scripts/Dpkg/Source/Compressor.pm
scripts/Makefile.am
scripts/dpkg-source.pl
scripts/po/POTFILES.in