Update of /cvsroot/freevo/freevo/src/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv15204/src/plugins
Modified Files:
rom_drives.py
Log Message:
some checking to avoid endless scanning
Index: rom_drives.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/rom_drives.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** rom_drives.py 29 Jun 2003 20:44:21 -0000 1.11
--- rom_drives.py 30 Jun 2003 15:30:54 -0000 1.12
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.12 2003/06/30 15:30:54 dischi
+ # some checking to avoid endless scanning
+ #
# Revision 1.11 2003/06/29 20:44:21 dischi
# mmpython support
***************
*** 594,604 ****
def run(self):
# Make sure the movie database is rebuilt at startup
! os.system('touch /tmp/freevo-rebuild-database')
while 1:
# Check if we need to update the database
# This is a simple way for external apps to signal changes
! if os.path.exists("/tmp/freevo-rebuild-database"):
! xml_parser.hash_xml_database()
for media in config.REMOVABLE_MEDIA:
media.drive_status = None
--- 597,612 ----
def run(self):
+
+ rebuild_file = '/tmp/freevo-rebuild-database'
# Make sure the movie database is rebuilt at startup
! os.system('touch %s' % rebuild_file)
while 1:
# Check if we need to update the database
# This is a simple way for external apps to signal changes
! if os.path.exists(rebuild_file):
! if xml_parser.hash_xml_database() == 0:
! # something is wrong, deactivate this feature
! rebuild_file = '/this/file/should/not/exist'
!
for media in config.REMOVABLE_MEDIA:
media.drive_status = None
-------------------------------------------------------
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