Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24891
Modified Files:
mediainfo.py
Log Message:
warn about old cache
Index: mediainfo.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/mediainfo.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** mediainfo.py 28 Mar 2004 03:14:53 -0000 1.41
--- mediainfo.py 11 Apr 2004 08:39:54 -0000 1.42
***************
*** 11,14 ****
--- 11,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.42 2004/04/11 08:39:54 dischi
+ # warn about old cache
+ #
# Revision 1.41 2004/03/28 03:14:53 krister
# oops
***************
*** 737,741 ****
try:
import mmpython.version
!
cachefile = os.path.join(config.FREEVO_CACHEDIR, 'mediainfo')
info = util.read_pickle(cachefile)
--- 740,745 ----
try:
import mmpython.version
! import time
!
cachefile = os.path.join(config.FREEVO_CACHEDIR, 'mediainfo')
info = util.read_pickle(cachefile)
***************
*** 762,766 ****
print 'Please rerun \'freevo cache\' to get the latest updates'
print
!
except:
print
--- 766,774 ----
print 'Please rerun \'freevo cache\' to get the latest updates'
print
! elif (int(time.time()) - part_update) / (3600 * 24) > 7:
! print
! print 'Warning: cache is older than 7 days'
! print 'Running \'freevo cache\' is recommended.'
! print
except:
print
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog