Add lockfile (#4449)

* add lock_file

* cleanup lock file

* Add LockFile tests

* add lock_dir

* add lock_dir_until_exit

* add set_up_core_dir and move lock_dir_until_exit

* Move lock_and_call to certbot.test.util

* Add lock to Apache

* Add lock to the Nginx plugin

* Improve permissions error message

* sort plugins

* add test_prepare_order

* provide more actionable permissions error

* Document and catch use of OSError

* don't lock a directory twice

* add conditional dependency on ordereddict

* Add lock_test

* expand sorted plugins comment

* Add lock_test to lint

* make make_lineage more conventional and flexible

* enhance lock_test.py

* add lock_test to tox

* Readd success message

* make py26 happy

* add test_acquire_without_deletion
This commit is contained in:
Brad Warren
2017-05-01 14:49:12 -07:00
committed by Peter Eckersley
parent 4ca702f6fb
commit 5ca8f7c5b9
20 changed files with 750 additions and 46 deletions
+4
View File
@@ -33,6 +33,10 @@ class SignalExit(Error):
"""A Unix signal was received while in the ErrorHandler context manager."""
class LockError(Error):
"""File locking error."""
# Auth Handler Errors
class AuthorizationError(Error):
"""Authorization error."""