[koji PATCH] use createrepo_c binary when available

Dan HorĂ¡k dan at danny.cz
Tue Jul 1 12:21:51 UTC 2014


---
 builder/kojid | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/builder/kojid b/builder/kojid
index aece387..600b861 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -3694,7 +3694,10 @@ class CreaterepoTask(BaseTaskHandler):
 
     def create_local_repo(self, rinfo, arch, pkglist, groupdata, oldrepo):
         koji.ensuredir(self.outdir)
-        cmd = ['/usr/bin/createrepo', '-vd', '-o', self.outdir]
+        crbin = '/usr/bin/createrepo_c'
+        if not os.path.isfile(crbin):
+            crbin = '/usr/bin/createrepo'
+        cmd = [crbin, '-vd', '-o', self.outdir]
         if pkglist is not None:
             cmd.extend(['-i', pkglist])
         if os.path.isfile(groupdata):
-- 
1.9.3



More information about the buildsys mailing list