summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Landscheidt <tim@tim-landscheidt.de>2012-10-24 23:18:57 +0000
committerPanu Matilainen <pmatilai@redhat.com>2012-11-01 11:08:23 +0200
commit1825e8863c8ffd4a6976d2e42ec387cfdc520aaa (patch)
treede60230aba0a59b79c9cfaa88365ada21af4db11
parent3ff6fdd688b8491acc14ad99a830607c1a80f3a7 (diff)
downloadlibrpm-tizen-1825e8863c8ffd4a6976d2e42ec387cfdc520aaa.tar.gz
librpm-tizen-1825e8863c8ffd4a6976d2e42ec387cfdc520aaa.tar.bz2
librpm-tizen-1825e8863c8ffd4a6976d2e42ec387cfdc520aaa.zip
Don't call "rpm --addsign" if rpmbuild didn't create RPMs.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
-rw-r--r--rpmpopt.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmpopt.in b/rpmpopt.in
index 146c0ce19..7a92ae50e 100644
--- a/rpmpopt.in
+++ b/rpmpopt.in
@@ -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 !#:+' \