fix repositoy signature with sha256 (#154)

This commit is contained in:
Timofey Turenko
2017-12-19 23:31:18 +02:00
committed by GitHub
parent e0c88a38ac
commit a5d2dc5ac7

View File

@ -55,7 +55,7 @@ if [ $z_res -eq 127 ] && [ $y_res -eq 127 ] ; then
exit 1 exit 1
fi fi
gpg -abs -o dists/$dist_name/Release.gpg dists/$dist_name/Release gpg -abs --digest-algo sha256 -o dists/$dist_name/Release.gpg dists/$dist_name/Release
if [ $? != 0 ] ; then if [ $? != 0 ] ; then
echo "Package signing failed!" echo "Package signing failed!"
exit 1 exit 1
@ -70,8 +70,7 @@ else
sudo zypper -n install createrepo sudo zypper -n install createrepo
fi fi
echo "%_signature gpg" >> ~/.rpmmacros echo "%_signature gpg" >> ~/.rpmmacros
echo "%_gpg_name MariaDB Maxscale" >> ~/.rpmmacros echo "%_gpg_name MariaDB Maxscale <maxscale@googlegroups.com>" >> ~/.rpmmacros
# echo "%_gpg_name MariaDBManager" >> ~/.rpmmacros
echo "\r" | setsid rpm --resign $sourcedir/*.rpm echo "\r" | setsid rpm --resign $sourcedir/*.rpm
if [ $? != 0 ] ; then if [ $? != 0 ] ; then