Skip to content

Commit

Permalink
No arounds - always use plugin digest registered hook in extract
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwiroy committed Jul 12, 2023
1 parent cfdc0e7 commit c52f749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/Alien/Build.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1669,6 +1669,7 @@ sub extract
path => $archive,
tmp => 0,
};
local $self->meta->{around}{check_digest};
$checked_digest = $self->meta->call_hook( check_digest => $self, $file, $algo, $expected )
}
if(!defined $detail->{protocol})
Expand Down
1 change: 1 addition & 0 deletions t/alien_build_plugin_extract_archivetar.t
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ subtest 'archive' => sub {
use alienfile;
plugin 'Test::Mock',
check_digest => 1;
meta->around_hook(check_digest => sub { die "FAIL" });
};
my $meta = $build->meta;

Expand Down

0 comments on commit c52f749

Please sign in to comment.