]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
sign_and_index_rpm_repo: speed up createrepo indexing 9/head
authorKen Dreyer <ken.dreyer@inktank.com>
Tue, 25 Feb 2014 04:20:46 +0000 (04:20 +0000)
committerKen Dreyer <ken.dreyer@inktank.com>
Tue, 25 Feb 2014 05:14:47 +0000 (05:14 +0000)
Run "createrepo" with the --update and --checkts options. This allows
createrepo to skip a lot of the metadata generation. With thousands of released
RPMs on ceph.com, every bit helps.

Signed-off-by: Ken Dreyer <ken.dreyer@inktank.com>
sign_and_index_rpm_repo.sh

index a146b7df3ae49d23556810257b438084cecd66b1..e1a4ad8a7aae953d679500824ca760f6ff1badd7 100755 (executable)
@@ -34,7 +34,7 @@ for dir in $repo/$cephvers/*/*
 do
     echo "indexing $dir"
     if [ -d $dir ] ; then
-        createrepo $dir
+        createrepo --update --checkts $dir
         gpg --batch --yes --detach-sign --armor -u $keyid $dir/repodata/repomd.xml
     fi
 done