]> err.no Git - dpkg/commit
Dpkg::Compression: add get_compression_from_filename()
authorRaphael Hertzog <hertzog@debian.org>
Sat, 16 Feb 2008 17:52:00 +0000 (18:52 +0100)
committerRaphael Hertzog <hertzog@debian.org>
Sat, 16 Feb 2008 17:52:00 +0000 (18:52 +0100)
commit753e47cdf4265b429dc8c800321162949ab65abb
tree5fef71ec782fb147ff39668b6ddc3886d45102f5
parent1c4ae37e4aebbaf715e31f86b046d1b36cf28d43
Dpkg::Compression: add get_compression_from_filename()

* scripts/Dpkg/Compression.pm: Add function
get_compression_from_filename() to identify the compression
type from the file extension. Returns undef in case of failure.
* scripts/Dpkg/Source/Compressor.pm: Simplify some code
by using the new get_compression_from_filename().
scripts/Dpkg/Compression.pm
scripts/Dpkg/Source/Compressor.pm