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

Modified Files:
        directory.py 
Log Message:
also check OVERLAY_DIR for update

Index: directory.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/directory.py,v
retrieving revision 1.85
retrieving revision 1.86
diff -C2 -d -r1.85 -r1.86
*** directory.py        4 Jan 2004 13:06:20 -0000       1.85
--- directory.py        4 Jan 2004 17:18:50 -0000       1.86
***************
*** 10,13 ****
--- 10,16 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.86  2004/01/04 17:18:50  dischi
+ # also check OVERLAY_DIR for update
+ #
  # Revision 1.85  2004/01/04 13:06:20  dischi
  # delete skin information on update
***************
*** 836,839 ****
--- 839,843 ----
          self.item_menu     = None
          self.dir           = None
+         self.overlay       = None
          self.files         = None
          self.poll_interval = 100
***************
*** 847,855 ****
          self.item_menu = item_menu
          self.dir       = dir
          self.files     = files
          try:
              self.last_time = item.__dirwatcher_last_time__
          except AttributeError:
!             self.last_time = vfs.stat(self.dir)[stat.ST_MTIME]
              self.item.__dirwatcher_last_time__ = self.last_time
          
--- 851,861 ----
          self.item_menu = item_menu
          self.dir       = dir
+         self.overlay   = vfs.getoverlay(dir)
          self.files     = files
          try:
              self.last_time = item.__dirwatcher_last_time__
          except AttributeError:
!             self.last_time = max(os.stat(self.dir)[stat.ST_MTIME],
!                                  os.stat(self.overlay)[stat.ST_MTIME])
              self.item.__dirwatcher_last_time__ = self.last_time
          
***************
*** 860,864 ****
          try:
              if config.DIRECTORY_USE_STAT_FOR_CHANGES and \
!                    vfs.stat(self.dir)[stat.ST_MTIME] == self.last_time:
                  return True
          except IOError:
--- 866,871 ----
          try:
              if config.DIRECTORY_USE_STAT_FOR_CHANGES and \
!                    os.stat(self.dir)[stat.ST_MTIME] <= self.last_time and \
!                    os.stat(self.overlay)[stat.ST_MTIME] <= self.last_time:
                  return True
          except IOError:
***************
*** 898,902 ****
              _debug_('directory has changed')
              self.item.build(menuw=self.menuw, arg='update')
!             self.last_time = vfs.stat(self.dir)[stat.ST_MTIME]
              self.item.__dirwatcher_last_time__ = self.last_time
                      
--- 905,910 ----
              _debug_('directory has changed')
              self.item.build(menuw=self.menuw, arg='update')
!             self.last_time = max(os.stat(self.dir)[stat.ST_MTIME],
!                                  os.stat(self.overlay)[stat.ST_MTIME])
              self.item.__dirwatcher_last_time__ = self.last_time
                      




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to