I don't know perl enough, I just debug it with print...
I debug it with packer(the package I maintain), which also misses some
dependencies in Built-Using.

It turns out the wrong logic in exec_chunked func.

sub exec_chunked {
    my ($cmd, @list) = @_;
    my @result;
    for (my $i = 0; $i < @list; $i += CHUNKSIZE) {
                       ^^^
                       why this is not the length of the array?
        push @result, exec_single($cmd, splice(@list, $i, CHUNKSIZE));
                                        ^^^
                                        I find after this sentence, the @list 
array changes.
    }
    return @result;
}


Take packer as example, the uniq(@godeps) has 394 elements. But I find the
exec_single only executed once, while the CHUNKSIZE is 200.

tincho, could you help look at the perl code?

-- 
Shengjing Zhu

Attachment: signature.asc
Description: PGP signature

Reply via email to