my $clone = $self->clone;
$clone->package( CHECKSUMS );
- my $file = $clone->fetch( %hash, force => 1 ) or return;
+ my $file = $clone->fetch( ttl => 3600, %hash ) or return;
return $file;
}
### loop over the header, there might be a pgp signature ###
my $signed;
- while (<$fh>) {
+ while (local $_ = <$fh>) {
last if /^\$cksum = \{\s*$/; # skip till this line
my $header = PGP_HEADER; # but be tolerant of whitespace
$signed = 1 if /^${header}\s*$/;# due to crossplatform linebreaks
### *should* be valid perl code
my $dist;
my $cksum = {};
- while (<$fh>) {
+ while (local $_ = <$fh>) {
if (/^\s*'([^']+)' => \{\s*$/) {
$dist = $1;
my $fh = OPEN_FILE->($file) or return;
my $signed;
- while (<$fh>) {
+ while (local $_ = <$fh>) {
my $header = PGP_HEADER;
$signed = 1 if /^$header$/;
}