Skip to content

Commit

Permalink
add diagnostics to delete_first
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed Apr 13, 2013
1 parent bb0152f commit 659aa40
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/CPAN/Queue.pm
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,13 @@ sub delete_first {
for my $i (0..$#All) {
if ( $All[$i]->{qmod} eq $what ) {
splice @All, $i, 1;
return;
last;
}
}
CPAN->debug(sprintf("after delete_first mod[%s] All[%s]",
$what,
join("",map {sprintf " %s\[%s]\n",$_->{qmod},$_->{reqtype}} @All)
)) if $CPAN::DEBUG;
}

# CPAN::Queue::jumpqueue ;
Expand Down

0 comments on commit 659aa40

Please sign in to comment.