[Sugar-devel] [PATCH Browse] Remove temporary downloaded (cancelled) files SL #3973

Martin Langhoff martin.langhoff at gmail.com
Tue Oct 2 05:40:12 EDT 2012


On Mon, Oct 1, 2012 at 3:14 PM, Manuel Kaufmann <humitos at gmail.com> wrote:
> This patch is a workaround to that behaviour. Every time that Browse
> is started it looks for all the ".goutputstream" files in the
> "instance" directory and checks its mtime. If it greater than 1 day it
> removes the old temporary file.

Good, but not enough. Compare mtime also to our boot time (ie: now -
uptime). If the file is from before we booted, needs to be nuked.

http://planzero.org/blog/2012/01/26/system_uptime_in_python,_a_better_way

cheers,



m
-- 
 martin.langhoff at gmail.com
 martin at laptop.org -- Software Architect - OLPC
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff


More information about the Sugar-devel mailing list