From 9263cb2f15ae5ca0e1f55da35afa7446acbddfd5 Mon Sep 17 00:00:00 2001 From: Bruce Potter Date: Sat, 31 Aug 2013 10:35:25 -0400 Subject: [PATCH] specify --checksum for createrepo so the repo will work on rhel5 --- buildcore.sh | 4 ++-- builddep.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/buildcore.sh b/buildcore.sh index e337d4e60..f6fee37ae 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -350,8 +350,8 @@ if [ "$OSNAME" != "AIX" ]; then echo "Signing RPMs..." build-utils/rpmsign.exp `find $DESTDIR -type f -name '*.rpm'` | grep -v -E '(was already signed|rpm --quiet --resign|WARNING: standard input reopened)' build-utils/rpmsign.exp $SRCDIR/*rpm | grep -v -E '(was already signed|rpm --quiet --resign|WARNING: standard input reopened)' - createrepo $DESTDIR - createrepo $SRCDIR + createrepo --checksum sha $DESTDIR # specifying checksum so the repo will work on rhel5 + createrepo --checksum sha $SRCDIR rm -f $SRCDIR/repodata/repomd.xml.asc rm -f $DESTDIR/repodata/repomd.xml.asc gpg -a --detach-sign $DESTDIR/repodata/repomd.xml diff --git a/builddep.sh b/builddep.sh index 46e6dfab5..c649aceb3 100755 --- a/builddep.sh +++ b/builddep.sh @@ -103,9 +103,9 @@ if [ "$OSNAME" != "AIX" ]; then echo "Creating repodata directories..." for i in `find -mindepth 2 -maxdepth 2 -type d `; do if [ -n "$VERBOSEMODE" ]; then - createrepo $i + createrepo --checksum sha $i # specifying checksum so the repo will work on rhel5 else - createrepo $i >/dev/null + createrepo --checksum sha $i >/dev/null fi rm -f $i/repodata/repomd.xml.asc gpg -a --detach-sign $i/repodata/repomd.xml