0.5.4: linux: check_latest_version leaves a file in /tmp

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
User avatar
gyre
Newbie
Newbie
Posts: 29
Joined: June 19th, 2008, 6:24 am

0.5.4: linux: check_latest_version leaves a file in /tmp

Post 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 --
Last edited by gyre on September 26th, 2010, 4:05 pm, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

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

Post 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.
Post Reply