Update of /cvsroot/freevo/freevo/src/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv12072/src/plugins

Modified Files:
        icecast.py 
Log Message:
Made a check to see if file exists before unlinking. 


Index: icecast.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/icecast.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** icecast.py  26 Jun 2003 15:15:46 -0000      1.3
--- icecast.py  1 Jul 2003 21:47:34 -0000       1.4
***************
*** 45,49 ****
                  mycmd = os.path.basename(config.ICES_CMD)
                  newm3ufile = file(os.path.join(config.FREEVO_CACHEDIR, 
'changem3u.txt'), 'rb').read()
!                 os.unlink(os.path.join(config.FREEVO_CACHEDIR, 'changem3u.txt'))
                  os.kill(self.ices_pid, signal.SIGTERM)
                  os.waitpid(self.ices_pid, 0)
--- 45,50 ----
                  mycmd = os.path.basename(config.ICES_CMD)
                  newm3ufile = file(os.path.join(config.FREEVO_CACHEDIR, 
'changem3u.txt'), 'rb').read()
!                 if os.path.exists(os.path.join(config.FREEVO_CACHEDIR, 
'changem3u.txt')):
!                     os.unlink(os.path.join(config.FREEVO_CACHEDIR, 'changem3u.txt'))
                  os.kill(self.ices_pid, signal.SIGTERM)
                  os.waitpid(self.ices_pid, 0)




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to