Skip to content

Commit 5a078c2

Browse files
committed
Fix "can't use string as a HASH ref" error
This could happen for some dependency cycles.
1 parent 71c0390 commit 5a078c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PBuild/Checker.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ sub handlecycle {
728728
my $notready = $ctx->{'notready'};
729729
my $pkgsrc = $ctx->{'pkgsrc'};
730730
if (grep {$notready->{$_->{'name'} || $_->{'pkg'}}} map {$pkgsrc->{$_}} @cycp) {
731-
$notready->{$_->{'name'} || $_->{'pkg'}} ||= 1 for @cycp;
731+
$notready->{$_->{'name'} || $_->{'pkg'}} ||= 1 for map {$pkgsrc->{$_}} @cycp;
732732
}
733733
return (undef, 3);
734734
}

0 commit comments

Comments
 (0)