blob: 5838ed89dac49bbdf580e9fd9119120fbba8a3ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
From 9e011d21cc7f90025e5e37c2b801f25c3a7c63ca Mon Sep 17 00:00:00 2001
From: Jeremy Olexa <darkside@gentoo.org>
Date: Wed, 6 Apr 2011 22:06:20 -0500
Subject: [PATCH] generic_stage_target.py: stupify the LockDir call
This is a terrible hack to make catalyst work on networked file systems.
I don't expect this to be upstreamed and it will probably break stuff if
there is more than one instance of catalyst running.
---
modules/generic_stage_target.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/generic_stage_target.py b/modules/generic_stage_target.py
index 55baea7..7a7ce0a 100644
--- a/modules/generic_stage_target.py
+++ b/modules/generic_stage_target.py
@@ -420,7 +420,7 @@ class generic_stage_target(generic_target):
normpath(self.settings["snapshot_cache"]+"/"+\
self.settings["snapshot"]+"/")
self.snapcache_lock=\
- catalyst_lock.LockDir(self.settings["snapshot_cache_path"])
+ catalyst_lock.LockDir("/tmp")
print "Caching snapshot to "+self.settings["snapshot_cache_path"]
def set_chroot_path(self):
@@ -430,7 +430,7 @@ class generic_stage_target(generic_target):
"""
self.settings["chroot_path"]=normpath(self.settings["storedir"]+\
"/tmp/"+self.settings["target_subpath"]+"/")
- self.chroot_lock=catalyst_lock.LockDir(self.settings["chroot_path"])
+ self.chroot_lock=catalyst_lock.LockDir("/opt")
def set_autoresume_path(self):
self.settings["autoresume_path"]=normpath(self.settings["storedir"]+\
--
1.7.4.1
|