--- trunk/lib/Frey/Pipe.pm 2008/12/16 20:59:48 861 +++ trunk/lib/Frey/Pipe.pm 2009/01/05 20:56:32 923 @@ -60,6 +60,18 @@ 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);