From 74a8082b57e1044cfd2d260eeb56f51fd412903f Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Tue, 25 Feb 2014 04:20:46 +0000 Subject: [PATCH] sign_and_index_rpm_repo: speed up createrepo indexing 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 --- sign_and_index_rpm_repo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sign_and_index_rpm_repo.sh b/sign_and_index_rpm_repo.sh index a146b7df..e1a4ad8a 100755 --- a/sign_and_index_rpm_repo.sh +++ b/sign_and_index_rpm_repo.sh @@ -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 -- 2.39.5