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

Modified Files:
        cache.py 
Log Message:
better rebuild

Index: cache.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/cache.py,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** cache.py    27 Feb 2004 20:27:45 -0000      1.27
--- cache.py    27 Feb 2004 20:41:38 -0000      1.28
***************
*** 12,15 ****
--- 12,18 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.28  2004/02/27 20:41:38  dischi
+ # better rebuild
+ #
  # Revision 1.27  2004/02/27 20:27:45  dischi
  # increase cache version
***************
*** 160,164 ****
              for f in util.match_files(config.OVERLAY_DIR + '/disc/metadata', 
['mmpython']):
                  os.unlink(f)
-                 print f
          print 'done'
  
--- 163,166 ----
***************
*** 398,401 ****
--- 400,409 ----
  
  
+     print 'Freevo cache'
+     print
+     print 'Freevo will now generate a metadata cache for all your files and'
+     print 'create thumbnails from images for faster access.'
+     print
+ 
      # check for current cache informations
      if (len(sys.argv)>1 and sys.argv[1] == '--rebuild'):
***************
*** 413,420 ****
              print
              print 'Unable to detect last complete rebuild, forcing rebuild'
!             rebuild         = 2
              complete_update = int(time.time())
          else:
!             complete_update = info[-1]
      except ImportError:
          print
--- 421,439 ----
              print
              print 'Unable to detect last complete rebuild, forcing rebuild'
!             rebuild = 2
              complete_update = int(time.time())
          else:
!             if len(info) == 3:
!                 mmchanged, part_update, complete_update = info
!                 freevo_changed = 0
!             else:
!                 mmchanged, freevo_changed, part_update, complete_update = info
! 
!             # let's warn about some updates
!             if freevo_changed < VERSION:
!                 print 'Cache too old, forcing rebuild'
!                 rebuild = 2
!                 complete_update = int(time.time())
!                 
      except ImportError:
          print
***************
*** 427,435 ****
          print
  
-     print 'Freevo cache'
-     print
-     print 'Freevo will now generate a metadata cache for all your files and'
-     print 'create thumbnails from images for faster access.'
-     print
      start = time.clock()
      
--- 446,449 ----



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to