Ignore:
Timestamp:
Jan 26, 2010 12:31:42 PM (14 years ago)
Author:
chervol
Message:

added refresh of index.hmtl if it is older the 1 hour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.distrpoxy/trunk/quintagroup/distproxy/wsgi.py

    r1260 r1587  
    22import socket 
    33import sys 
     4from time import time 
    45from paste.script.appinstall import Installer as BaseInstaller 
    56from paste.fileapp import FileApp 
     
    4243            pth = '/'.join(pth.split('/')[:-1]) 
    4344        if not os.path.exists(pth1): 
     45            webmirror(pth,1,self.index_url+path,0,1) 
     46        elif int(time()) - os.path.getmtime(pth1) > 3600: 
    4447            webmirror(pth,1,self.index_url+path,0,1) 
    4548        if pth1: 
Note: See TracChangeset for help on using the changeset viewer.