From 1825e8863c8ffd4a6976d2e42ec387cfdc520aaa Mon Sep 17 00:00:00 2001 From: Tim Landscheidt Date: Wed, 24 Oct 2012 23:18:57 +0000 Subject: [PATCH] Don't call "rpm --addsign" if rpmbuild didn't create RPMs. Signed-off-by: Panu Matilainen --- rpmpopt.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpmpopt.in b/rpmpopt.in index 146c0ce199..7a92ae50ec 100644 --- a/rpmpopt.in +++ b/rpmpopt.in @@ -174,7 +174,7 @@ rpmbuild alias --buildpolicy --define '__os_install_post %{_rpmconfigdir}/brp-!# --POPTargs=$"" # 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 !#:+' \