perl5i leaves tempfile droppings in /tmp #139

Closed
avar opened this Issue Jun 23, 2010 · 4 comments

Projects

None yet

2 participants

@avar
avar commented Jun 23, 2010

perl5i doesn't clean up its tempfiles:

v-perlbrew@v:/tmp$ ack --no-recurse -f perl5i ?????????? | xargs rm -v
ack: perl5i: No such file or directory
removed `0vpkNcbEar'
removed `638c6kp9eS'
removed `fE3pUYUcpn'
removed `kLdJaaLKng'
removed `ksXseN50Bn'
removed `RYves4kb2R'
removed `UrBcQtXRUY'
v-perlbrew@v:/tmp$ cpanm perl5i::latest
Fetching http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/perl5i-v2.2.2.tar.gz ... OK
Configuring perl5i-v2.2.2 ... OK
Building and testing perl5i-v2.2.2 for perl5i::latest ... OK
Successfully reinstalled perl5i-v2.2.2
v-perlbrew@v:/tmp$ ack --no-recurse -f perl5i ??????????
ack: perl5i: No such file or directory
3dZn8Zv1uS
8Zdpug9MKa
iaktvLcsyH
kR7zqMROBn
pwPs6SmBAu
RfZT1bOG__
YpyeEpKtPg

See https://rt.cpan.org/Ticket/Display.html?id=57514 for a related bug
and what to do about this.

@schwern
Collaborator
schwern commented Jun 23, 2010

I'm the sort of person that doesn't make their bed in the morning, because I'm just going to mess it up at night, so I can't get too excited about leaving files in the temp directory. They'll get cleaned up eventually. But feel free to fix it.

(I'll make a note that the perl5i temp file methods should turn on auto-cleanup by default)

@avar
avar commented Jun 23, 2010

Here's a fix, not that there's much point if you don't care since it'll just regress again when you add new tests. But you can apply it if you want.

@schwern
Collaborator
schwern commented Jun 23, 2010

Thanks for the work, I'll merge it in as soon as OSU deigns I can connect to git again.

@schwern
Collaborator
schwern commented Jul 12, 2010

Merged in 2.3.0_01

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment