Skip to content

Commit

Permalink
Fix RPM signing to directly call rpmsign and path to gpg in macro
Browse files Browse the repository at this point in the history
  • Loading branch information
onetechnical committed Oct 19, 2023
1 parent 0a7aa2f commit e6cf75d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions scripts/release/mule/deploy/rpm/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,14 @@ echo "wat" | gpg -u [email protected] --clearsign

cat << EOF > .rpmmacros
%_gpg_name Algorand RPM <[email protected]>
%__gpg /root/gnupg2/bin/gpg
%__gpg /usr/bin/gpg2
%__gpg_check_password_cmd true
EOF

cat << EOF > rpmsign.py
import rpm
import sys
rpm.addSign(sys.argv[1], '')
EOF

mkdir rpmrepo
for rpm in $(ls *"$VERSION"*.rpm)
do
python3 rpmsign.py "$rpm"
rpmsign --addsign "$rpm"
cp -p "$rpm" rpmrepo
done

Expand Down

0 comments on commit e6cf75d

Please sign in to comment.