Hi Radek,

sorry for the delay. Life's busy.

rahed wrote:
$dist1 = blib_to_par(
            path => '/tmp/Class-ErrorHandler-0.01',
            dist => '/export/home/user1/test/class_error.par',
           );
$dist2 = blib_to_par(
            path => '/tmp/Convert-ASN1-0.22',
            dist => '/export/home/user1/test/convert_asn1.par',
           );
merge_par('/tmp/foo.par',$dist1,$dist2);

First I had to change line #271 from PAR::Dist (v0.40)

rename( $file => $dist );

to

unlink $file if File::Copy::copy($file,$dist) or die "Cannot copy $file: $!";

to cope with a rename function which doesn't work across filesystem
boundaries.

Okay, that's hardly surprising. I'll fix this now.

Then a merge_par function dies with this message:

Could not copy '/tmp/parxdotc/lib/Class/ErrorHandler.pm' to
'/tmp/parXyMCf/blib/lib/Class/ErrorHandler.pm': Permission denied at
/usr/local/lib/perl5/site_perl/5.8.8/PAR/Dist.pm line 714.

The target ErrorHandler.pm is already there and has only a read
permission.

That's somewhat strange. I tried exactly the steps you outlined above (but on one file system) using exactly the same modules and everything worked like a charm and the first .par now has the contents of both initial .par's. Can you show me the exact command with which you executed merge_par?

Cheers,
Steffen

Reply via email to