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

| unknown config option: mockpath

error.

Signed-off-by: Enrico Scholz <[EMAIL PROTECTED]>
---
 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

--
Fedora-buildsys-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Reply via email to