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