Page 1 of 1

0.5.4: linux: check_latest_version leaves a file in /tmp

Posted: September 26th, 2010, 3:56 pm
by gyre
Apologies if I'm off-base.

I think checking for the latest version of sabnzbd+ leaves a temporary file in /tmp each time it is invoked.

Code: Select all

        fn = urllib.urlretrieve('http://sabnzbdplus.sourceforge.net/version/latest')[0]
        f = open(fn, 'r')
        data = f.read()
        f.close()
I think you're throwing away the name of the temporary file returned by urlretrieve, whereas I think you need to delete it after you've done the f.close ()

Thanks! :)

-- gyre --

Re: 0.5.4: linux: check_latest_version leaves a file in /tmp

Posted: September 26th, 2010, 4:06 pm
by shypike
gyre wrote: Apologies if I'm off-base.
You cannot be off base if you report unexpected behavior.
I suspect that you are right, I'll look into it.
Thanks for reporting.