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

Modified Files:
        cache.py 
Log Message:
support OVERLAY_DIR_STORE_MMPYTHON_DATA

Index: cache.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/cache.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** cache.py    28 Nov 2003 19:26:37 -0000      1.9
--- cache.py    30 Dec 2003 15:36:42 -0000      1.10
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.10  2003/12/30 15:36:42  dischi
+ # support OVERLAY_DIR_STORE_MMPYTHON_DATA
+ #
  # Revision 1.9  2003/11/28 19:26:37  dischi
  # renamed some config variables
***************
*** 131,135 ****
      mmpython.use_cache(mmcache)
      mmpython.mediainfo.DEBUG = 0
!     mmpython.factory.DEBUG = 0
  
      if rebuild:
--- 134,144 ----
      mmpython.use_cache(mmcache)
      mmpython.mediainfo.DEBUG = 0
!     mmpython.factory.DEBUG   = 0
! 
!     if config.OVERLAY_DIR_STORE_MMPYTHON_DATA and mmpython.object_cache and \
!            hasattr(mmpython.object_cache, 'md5_cachedir'):
!         _debug_('use OVERLAY_DIR for mmpython cache')
!         mmpython.object_cache.md5_cachedir = False
!         mmpython.object_cache.cachedir     = config.OVERLAY_DIR
  
      if rebuild:
***************
*** 140,144 ****
      all_dirs = []
      print 'caching directories...'
!     for n, d in config.VIDEO_ITEMS + config.AUDIO_ITEMS + config.IMAGE_ITEMS:
          os.path.walk(d, cache_helper, all_dirs)
      for d in all_dirs:
--- 149,159 ----
      all_dirs = []
      print 'caching directories...'
!     for d in config.VIDEO_ITEMS + config.AUDIO_ITEMS + config.IMAGE_ITEMS:
!         try:
!             d = d[1]
!         except:
!             pass
!         if not os.path.isdir(d):
!             continue
          os.path.walk(d, cache_helper, all_dirs)
      for d in all_dirs:
***************
*** 153,156 ****
--- 168,172 ----
  
  if __name__ == "__main__":
+     os.umask(config.UMASK)
      if len(sys.argv)>1 and sys.argv[1] == '--help':
          print 'freevo cache helper to delete unused cache entries and to'




-------------------------------------------------------
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