Skip to content

Commit

Permalink
Don't call "rpm --addsign" if rpmbuild didn't create RPMs.
Browse files Browse the repository at this point in the history
Signed-off-by: Panu Matilainen <[email protected]>
  • Loading branch information
scfc authored and pmatilai committed Nov 1, 2012
1 parent 3ff6fdd commit 1825e88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpmpopt.in
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ rpmbuild alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!#
--POPTargs=$"<policy>"
# Minimally preserve rpmbuild's --sign functionality
rpmbuild alias --sign \
--pipe "grep '.*: .*\.rpm$'|cut -d: -f2|xargs rpm --addsign" \
--pipe "grep '.*: .*\.rpm$'|cut -d: -f2|xargs -r rpm --addsign" \
--POPTdesc=$"generate GPG signature"

rpmsign alias --key-id --define '_gpg_name !#:+' \
Expand Down

0 comments on commit 1825e88

Please sign in to comment.