Commit f3502587 authored by Claude Paroz's avatar Claude Paroz

Changed lock directory location

As /tmp is often isolated by process in modern systems, let's use
the /var/lock directory.
Refs Infrastructure/Infrastructure#43
parent b4ffcc8a
......@@ -180,7 +180,7 @@ class ModuleLock:
def __init__(self, mod):
assert isinstance(mod, Module)
self.module = mod
self.dirpath = os.path.join("/tmp", "updating-%s" %
self.dirpath = os.path.join("/var/lock", "updating-%s" %
def __enter__(self):
while True:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment