Re: [Module::Build] PL_Files and add_to_cleanup
Status: Beta
Brought to you by:
kwilliams
|
From: John P. <jpe...@ro...> - 2006-02-26 00:00:34
|
Randy W. Sims wrote:
> while (my ($file, $to) = each %$files) {
> unless ($self->up_to_date( $file, $to )) {
> $self->run_perl_script($file, [], [@$to]);
> $self->add_to_cleanup(@$to);
That does seem like it should DTRT.
> Under what conditions does it fail to clean up?
I noticed it failing in my development directory, in this instance for
SVN::Notify::Mirror. If I expand the tar into a temp directory (like CPANPLUS
would do), everything works fine. I just tried to reproduce the problem by
manually deleting the files in question and then going through:
$ perl Build.PL
$ ./Build test
$ ./Build distclean
and this time the generated files were deleted (though I swear I already went
through this loop several times).
Mark it down as a Heisenbug...
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747
|