Don't call "rpm --addsign" if rpmbuild didn't create RPMs.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
This commit is contained in:
Tim Landscheidt 2012-10-24 23:18:57 +00:00 committed by Panu Matilainen
parent 3ff6fdd688
commit 1825e8863c
1 changed files with 1 additions and 1 deletions

View File

@ -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 !#:+' \