[PATCH] Don't hardcode /var/lib/mock

Mathieu Bridon bochecha at fedoraproject.org
Wed Jan 29 09:56:06 UTC 2014


The builder configuration allows setting this to a different folder.
---
 koji/daemon.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koji/daemon.py b/koji/daemon.py
index fa22d5a..4f4b575 100644
--- a/koji/daemon.py
+++ b/koji/daemon.py
@@ -651,7 +651,7 @@ class TaskManager(object):
             if id is None or name is None:
                 continue
             # see if there's a dir for the buildroot
-            vardir = "/var/lib/mock/%s" % name
+            vardir = os.path.join(self.options.mockdir, name)
             #XXX
             buildroots[id] = {}
             buildroots[id]['name'] = name
-- 
1.8.4.2



More information about the buildsys mailing list