[PATCH koji] Made 'mockpath' configurable for kojid

Enrico Scholz enrico.scholz at informatik.tu-chemnitz.de
Mon May 7 06:53:47 UTC 2007


Trying to set 'mockpath' in the configuration file results into an

| unknown config option: mockpath

error.

Signed-off-by: Enrico Scholz <enrico.scholz at informatik.tu-chemnitz.de>
---
 builder/kojid |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/builder/kojid b/builder/kojid
index 7a66bfc..6243edd 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -338,7 +338,7 @@ class BuildRoot(object):
     def mock(self, args, skip_setarch=False):
         """Run mock"""
         global options
-        mockpath = getattr(options,"mockpath","/usr/bin/mock")
+        mockpath = getattr(options,"mockpath")
         cmd = [mockpath, "-r", self.mockcfg]
         if not skip_setarch:
             if self.br_arch.startswith('sparc64'):
@@ -2366,6 +2366,7 @@ def get_options():
                 'workdir': '/tmp/koji',
                 'mockdir': '/var/lib/mock',
                 'mockuser': 'kojibuilder',
+		'mockpath': '/usr/bin/mock',
                 'packager': 'Koji',
                 'vendor': 'Koji',
                 'mockhost': 'koji-linux-gnu',
-- 
1.5.0.6




More information about the Fedora-buildsys-list mailing list