This is a simple patch to add a settable option of the createrepo command
mock will run if createrepo_on_rpms is set to True.
A point about being able to set which checksum is generate was made in
this bug report: https://bugzilla.redhat.com/show_bug.cgi?id=571636
This should provide for that kind of option setting.
thanks,
-sv
diff --git a/etc/mock/site-defaults.cfg b/etc/mock/site-defaults.cfg
index 3e432b5..5f0a83e 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'