From 08094e069d2ae05b50dc31ba64e3f3b865e4a8e0 Mon Sep 17 00:00:00 2001 From: Raphaƫl Hertzog Date: Thu, 25 Feb 2010 17:47:14 +0100 Subject: Dpkg::Checksums: rewrite to provide an object-oriented API Many other modules and scripts are also updated to cope with the new API. The API of the module should be stable from now on, hence increased $VERSION to "1.00". --- scripts/Dpkg/Control/Hash.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/Dpkg/Control/Hash.pm') diff --git a/scripts/Dpkg/Control/Hash.pm b/scripts/Dpkg/Control/Hash.pm index b613da40d..2633b4f97 100644 --- a/scripts/Dpkg/Control/Hash.pm +++ b/scripts/Dpkg/Control/Hash.pm @@ -375,7 +375,7 @@ package Dpkg::Control::Hash::Tie; # type Dpkg::Control. use Dpkg::ErrorHandling; -use Dpkg::Checksums qw(%check_supported); +use Dpkg::Checksums; use Tie::Hash; use base qw(Tie::ExtraHash); @@ -384,7 +384,7 @@ sub field_capitalize($) { my $field = lc(shift); # Some special cases due to history return "MD5sum" if $field eq "md5sum"; - return uc($field) if exists $check_supported{$field}; + return uc($field) if checksums_is_supported($field); # Generic case return join '-', map { ucfirst } split /-/, $field; } -- cgit v1.2.3