Changeset 1394 for trunk/applications/shepherd
- Timestamp:
- 01/01/12 13:50:24 (5 months ago)
- Files:
-
- 1 modified
-
trunk/applications/shepherd (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/applications/shepherd
r1390 r1394 49 49 &require_module("Algorithm::Diff"); 50 50 &require_module("List::Compare"); 51 &require_module("Digest::SHA 1");51 &require_module("Digest::SHA"); 52 52 &require_module("Fcntl"); 53 53 … … 497 497 { 498 498 my $file = shift; 499 my $sha1 = Digest::SHA 1->new();499 my $sha1 = Digest::SHA->new(); 500 500 501 501 open(F,"<$file") || return -1; … … 1670 1670 # check the checksum 1671 1671 if (defined $csum) { 1672 my $sha 1 = Digest::SHA1->new();1673 $sha 1->add($response->content);1674 my $rcsum = $sha 1->hexdigest;1672 my $sha = Digest::SHA->new(); 1673 $sha->add($response->content); 1674 my $rcsum = $sha->hexdigest; 1675 1675 if ($rcsum ne $csum) { 1676 1676 &log("$url corrupt: expected checksum $csum but got ".$rcsum."\n");
