[damned-lies] Changed lock directory location



commit f35025877b833bbbfe278d996c77843d58ab4cdd
Author: Claude Paroz <claude 2xlibre net>
Date:   Fri Nov 30 16:42:54 2018 +0100

    Changed lock directory location
    
    As /tmp is often isolated by process in modern systems, let's use
    the /var/lock directory.
    Refs https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/43

 stats/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/stats/models.py b/stats/models.py
index f1b8f00e..0c74fc75 100644
--- a/stats/models.py
+++ b/stats/models.py
@@ -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.module.name)
+        self.dirpath = os.path.join("/var/lock", "updating-%s" % self.module.name)
 
     def __enter__(self):
         while True:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]