477 |
|
|
478 |
|
sub copysetup { |
479 |
|
my $self=shift; |
480 |
< |
my $dest=shift; |
481 |
< |
|
480 |
> |
my $dest=shift; |
481 |
|
my $rv=1; |
482 |
|
# copy across the admin dir |
483 |
|
my $temp=$self->location()."/".$self->{admindir}."/".$self->arch(); |
488 |
|
$rv=0; |
489 |
|
} |
490 |
|
} |
491 |
+ |
return $rv; |
492 |
+ |
} |
493 |
+ |
|
494 |
+ |
sub copywithskip { |
495 |
+ |
my $self=shift; |
496 |
+ |
my $dest=shift; |
497 |
+ |
my ($filetoskip)=@_; |
498 |
+ |
my $rv=1; |
499 |
+ |
# copy across the admin dir |
500 |
+ |
my $temp=$self->location()."/".$self->{admindir}."/".$self->arch(); |
501 |
+ |
my $temp2=$dest."/".$self->{admindir}."/".$self->arch(); |
502 |
+ |
if ( $temp ne $temp2 ) { |
503 |
+ |
if ( -d $temp ) { |
504 |
+ |
AddDir::copydirwithskip($temp,$temp2,$filetoskip); |
505 |
+ |
$rv=0; |
506 |
+ |
} |
507 |
+ |
} |
508 |
|
return $rv; |
509 |
|
} |
510 |
|
|