* userdir_gpg.py: GetClearSig: add lax_multipart to deal
with random multipart mails.
* naming your variable like a module is unsmart.
- * ud-generate: filter on shadowAccount.
+ * ud-generate:
+ - filter on shadowAccount.
+ - fix breaking old ud-generate locks.
* ud-mailgate: only run ldapmodfiy if we actually have attributes to modify.
* ud-replicate: do not hard-code 'debian.org' in the 'write-zonefile
debian.org' call, but instead re-use the domain from email-append.
* Fix deprecation warnings for sha module by using hashlib module instead
* ud-fingerserv: update Net::LDAP import
- -- Peter Palfrader <weasel@debian.org> Wed, 02 Nov 2011 23:41:26 +0100
+ -- Peter Palfrader <weasel@debian.org> Thu, 29 Dec 2011 21:54:54 +0100
userdir-ldap (0.3.79) unstable; urgency=low
def get_lock(fn, wait=5*60, max_age=3600*6):
try:
- stat = os.stat(fn)
- if stat[ST_MTIME] < time.time() - max_age:
- sys.stderr.write("Removing stale lock %s"%(fn))
- os.unlink(fn)
+ stat = os.stat(fn + '.lock')
+ if stat.st_mtime < time.time() - max_age:
+ sys.stderr.write("Removing stale lock %s"%(fn + '.lock'))
+ os.unlink(fn + '.lock')
except OSError, error:
if error.errno == errno.ENOENT:
pass