pld-ftp-admin: scripts/from-incoming.py Revert 30 seconds delay. T...
arekm
arekm at pld-linux.org
Wed Feb 27 20:57:32 CET 2008
Author: arekm Date: Wed Feb 27 19:57:32 2008 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
Revert 30 seconds delay. Too annoying. Need to fix the cause of the problem.
---- Files affected:
pld-ftp-admin/scripts:
from-incoming.py (1.13 -> 1.14)
---- Diffs:
================================================================
Index: pld-ftp-admin/scripts/from-incoming.py
diff -u pld-ftp-admin/scripts/from-incoming.py:1.13 pld-ftp-admin/scripts/from-incoming.py:1.14
--- pld-ftp-admin/scripts/from-incoming.py:1.13 Tue Jan 3 13:49:57 2006
+++ pld-ftp-admin/scripts/from-incoming.py Wed Feb 27 20:57:27 2008
@@ -26,14 +26,7 @@
def findfiles(dir):
def filterinfos(x):
if x[-11:]=='.uploadinfo':
- mtime = os.stat(dir + '/' + x)[stat.ST_MTIME]
- now = time.time()
- # don't look into uploadinfo files for 30 seconds after scp
- # note -- most likely this doesn't achieve anything
- if now - mtime > 30:
- return True
- else:
- return False
+ return True
else:
return False
return filter(filterinfos, os.listdir(dir))
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/scripts/from-incoming.py?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list