Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26207/src/util

Modified Files:
        mediainfo.py 
Log Message:
delete cache on mmpython update

Index: mediainfo.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/mediainfo.py,v
retrieving revision 1.46
retrieving revision 1.47
diff -C2 -d -r1.46 -r1.47
*** mediainfo.py        31 May 2004 15:58:26 -0000      1.46
--- mediainfo.py        6 Jun 2004 06:41:47 -0000       1.47
***************
*** 11,14 ****
--- 11,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.47  2004/06/06 06:41:47  dischi
+ # delete cache on mmpython update
+ #
  # Revision 1.46  2004/05/31 15:58:26  dischi
  # do not cache bad info
***************
*** 727,731 ****
      
  
! 
  
  #
--- 730,742 ----
      
  
! def del_cache():
!     """
!     delete all cache files because mmpython got updated
!     """
!     for f in util.recursefolders(config.OVERLAY_DIR,1,'mmpython.cache',1):
!         os.unlink(f)
!     for f in util.match_files(config.OVERLAY_DIR + '/disc/metadata', ['mmpython']):
!         os.unlink(f)
!     
  
  #
***************
*** 758,761 ****
--- 769,773 ----
              print 'Please run \'freevo cache\''
              print
+             del_cache()
          else:
              if len(info) == 3:
***************
*** 770,773 ****
--- 782,787 ----
                  print 'Please rerun \'freevo cache\' to speed up Freevo'
                  print
+                 del_cache()
+                 
              elif mmpython.version.CHANGED > mmchanged:
                  print
***************
*** 775,778 ****
--- 789,794 ----
                  print 'Please rerun \'freevo cache\' to get the latest updates'
                  print
+                 del_cache()
+ 
              elif (int(time.time()) - part_update) / (3600 * 24) > 7:
                  print



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to