From 2b7baaf29435960d3e77fe2836426d9da72819e2 Mon Sep 17 00:00:00 2001 From: Nikolaus Schulz Date: Fri, 15 Jan 2010 23:02:54 +0100 Subject: In verbose mode, say that we're about to dotlock an mbox before trying to do so --- archivemail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archivemail.py b/archivemail.py index f927f60..6658746 100755 --- a/archivemail.py +++ b/archivemail.py @@ -371,6 +371,8 @@ class LockableMboxMixin: pid = os.getpid() box_dir, prelock_prefix = os.path.split(self.mbox_file_name) prelock_suffix = ".%s.%s%s" % (hostname, pid, options.lockfile_extension) + lock_name = self.mbox_file_name + options.lockfile_extension + vprint("trying to create dotlock file '%s'" % lock_name) try: plfd, prelock_name = tempfile.mkstemp(prelock_suffix, prelock_prefix, dir=box_dir) @@ -381,7 +383,6 @@ class LockableMboxMixin: self.mbox_file_name) return raise - lock_name = self.mbox_file_name + options.lockfile_extension try: try: os.link(prelock_name, lock_name) -- cgit v1.2.3