last mod is last mod file not last mod dir

This commit is contained in:
j 2008-07-07 11:24:27 +02:00
parent 3d4bb39d98
commit 989211b170

View file

@ -1,25 +1,22 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# vi:si:et:sw=2:sts=2:ts=2 # vi:si:et:sw=2:sts=2:ts=2
import gzip from datetime import datetime
import StringIO
from glob import glob from glob import glob
from os.path import abspath, join, dirname, exists
from urllib import quote, quote_plus
import gzip
import math
import os import os
import re
import shutil
import socket
import StringIO
import time
import urllib2
from sqlobject import * from sqlobject import *
from turbogears.database import PackageHub from turbogears.database import PackageHub
import turbogears import turbogears
import re
from urllib import quote, quote_plus
import urllib2
import os
from os.path import abspath, join, dirname, exists
from datetime import datetime
import time
import math
from glob import glob
import shutil
import socket
import simplejson import simplejson
from oxlib.net import getUrl from oxlib.net import getUrl
import oxlib import oxlib
@ -31,6 +28,7 @@ from oxdb_utils import oxdb_title, oxdb_director, oxdb_id, oxdb_makedir
from extract import * from extract import *
import midentify import midentify
def debug(string): def debug(string):
#print string #print string
return return
@ -73,7 +71,7 @@ class Archive(SQLObject):
return True return True
def sinceLastModification(self): def sinceLastModification(self):
return time.time() - max([os.stat(f).st_mtime for f in glob('%s/*'% self.basePath)]) return time.time() - max([os.stat(f).st_mtime for f in glob('%s*/*'% self.basePath)])
def notifyFrontend(self, action, md5sum): def notifyFrontend(self, action, md5sum):
if self.baseUrlFrontend: if self.baseUrlFrontend: