--- trunk/lib/Frey/Pipe.pm 2008/12/16 20:59:48 861 +++ trunk/lib/Frey/Pipe.pm 2009/01/06 00:22:04 933 @@ -60,10 +60,28 @@ warn "# pipe $part" if $self->debug; my $o = $self->new_frey_class( $class, $default ); + + # XXX copy depends from parts of pipe + if ( $o->can('depends') ) { + $o->depends; + my $current_head; + $current_head->{$_}++ foreach $self->head; + foreach ( $o->head ) { + next if $current_head->{$_}++; + $self->add_head( $_ ); + } + } + my $result = $o->$method; warn "# result ",length( $result ), " bytes ", ref($result); - $self->add_status({ $part => { $class => { method => $method, args => $args } } }); + my $current_status; + $current_status->{$_}++ foreach $self->status; + foreach ( $o->status ) { + next if $current_status->{$_}++; + $self->add_status( $_ ); + warn "# pipe add_status: $_"; + } $self->content_type( $o->content_type ) if $o->can('content_type');