diff options
author | Nikolaus Schulz <microschulz@web.de> | 2010-01-15 23:02:54 +0100 |
---|---|---|
committer | Nikolaus Schulz <microschulz@web.de> | 2010-07-19 01:40:25 +0200 |
commit | 2b7baaf29435960d3e77fe2836426d9da72819e2 (patch) | |
tree | c2b0ffd1b3afe5eb26c7f7e0e2a652d0e0b3f2b5 | |
parent | 0f2b04ff8954c5b92bb0f70708877a02f405b62c (diff) | |
download | archivemail-2b7baaf29435960d3e77fe2836426d9da72819e2.tar.gz archivemail-2b7baaf29435960d3e77fe2836426d9da72819e2.tar.bz2 archivemail-2b7baaf29435960d3e77fe2836426d9da72819e2.zip |
In verbose mode, say that we're about to dotlock an mbox before trying to do so
-rwxr-xr-x | archivemail.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |