Closed GoogleCodeExporter closed 9 years ago
Actually, this is a bit worse than not cleaning up temp files. It actually
reverses
the intent of StraceRunner.keep_temps, so it deletes files you want to keep and
keeps
files you want to delete. E.g., change my example script to include this:
from fabricate import run, StraceRunner
StraceRunner.keep_temps = True
And suddenly the temp files get cleaned up.
It looks like the related --keep option is similarly broken. It uses the
"store_false" action, which seems to reverse the intent. Also, because it
doesn't
have a default value, it looks like it will always be False (in a boolean
context),
and it can never influence the value of StraceRunner.keep_temps.
Here's a patch that may fix it. I haven't tested it thoroughly.
Original comment by kevingoo...@gmail.com
on 9 May 2010 at 9:34
Attachments:
Thanks, Kevin! I've fixed this now by applying your patch. We had scores of
unexpected
temp files lying around, and had obviously never used the --keep-temps option.
Good
find. :-)
Original comment by benh...@gmail.com
on 10 May 2010 at 8:53
This issue was closed by revision 3fcdeebba14d.
Original comment by simon.al...@gmail.com
on 15 Apr 2013 at 4:38
Original issue reported on code.google.com by
kevingoo...@gmail.com
on 9 May 2010 at 8:59