From 504dfc23566f87e6b12cc12dcaa87e1c069756a2 Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Tue, 27 Sep 2011 17:44:39 +0200 Subject: [PATCH] Allow to not sign template rpm at building time Used by qubes-builder --- build_template_rpm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build_template_rpm b/build_template_rpm index 7936008..273ec58 100755 --- a/build_template_rpm +++ b/build_template_rpm @@ -6,4 +6,7 @@ echo "usage $0 " exit fi -rpmbuild --sign --target noarch --define "template_name $NAME" -bb templates.spec +SIGN_OPT=--sign +[ "$NO_SIGN" = "1" ] && SIGN_OPT= + +rpmbuild $SIGN_OPT --target noarch --define "template_name $NAME" -bb templates.spec