FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Build System

 
 
LinkBack Thread Tools
 
Old 03-11-2010, 09:25 PM
Seth Vidal
 
Default mock + createrepo = love

Patch attached.

this just adds a createrepo_command option so you can set the options you
want to pass to createrepo


-sv
commit 0a607b4e59968ba49e9524ac1433e5a0b9ba5997
Author: Seth Vidal <skvidal@fedoraproject.org>
Date: Thu Mar 11 17:23:33 2010 -0500

make createrepo command an option

diff --git a/etc/mock/site-defaults.cfg b/etc/mock/site-defaults.cfg
index 6da9290..8e9911c 100644
--- a/etc/mock/site-defaults.cfg
+++ b/etc/mock/site-defaults.cfg
@@ -48,6 +48,7 @@
# if you want mock to automatically run createrepo on the rpms in your
# resultdir.
# config_opts['createrepo_on_rpms'] = True
+# config_opts['createrepo_command'] = '/usr/bin/createrepo -d -q -x *.src.rpm'

################################################## ###########################
#
diff --git a/py/mock.py b/py/mock.py
index eea493c..081b378 100755
--- a/py/mock.py
+++ b/py/mock.py
@@ -228,6 +228,7 @@ def setup_default_config_opts(config_opts, unprivUid):
config_opts['cleanup_on_failure'] = 1

config_opts['createrepo_on_rpms'] = True
+ config_opts['createrepo_command'] = '/usr/bin/createrepo -d -q -x *.src.rpm' # default command
# (global) plugins and plugin configs.
# ordering constraings: tmpfs must be first.
# root_cache next.
@@ -382,7 +383,8 @@ def do_rebuild(config_opts, chroot, srpms):

if config_opts["createrepo_on_rpms"]:
log.info("Running createrepo on binary rpms in resultdir")
- cmd = ['/usr/bin/createrepo', '-d', '-q', '-x', '*.src.rpm', chroot.resultdir]
+ cmd = config_opts["createrepo_command"].split()
+ cmd.append(chroot.resultdir)
mock.util.do(cmd)

except (Exception, KeyboardInterrupt):
--
buildsys mailing list
buildsys@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/buildsys
 

Thread Tools




All times are GMT. The time now is 02:20 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org