From 268aa22e315f9fe8ae310a1fe67c1ff2a8cfbe47 Mon Sep 17 00:00:00 2001 From: Gary Lowell Date: Thu, 7 Mar 2013 21:03:18 -0800 Subject: [PATCH] rpm-autosign.exp: New utility to help sign rpms. The rpm commend insists on prompting for a passphrase when signing rpms even for passphraselees keys. This behaviour causes problems for automated build scripts. The rpm-autosign.exp scripts is a small expect wrapper for rpm that that sends empty passphrase in reposne to the prompt. Signed-off-by: Gary Lowell --- rpm-autosign.exp | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 rpm-autosign.exp diff --git a/rpm-autosign.exp b/rpm-autosign.exp new file mode 100755 index 0000000..0e2541f --- /dev/null +++ b/rpm-autosign.exp @@ -0,0 +1,9 @@ +#!/usr/bin/expect -f + +# First parameter should be the key such as: +# --define "_gpg_name 03C3951A" + +spawn rpm --addsign {*}$argv +expect -exact "Enter pass phrase: " +send -- "\r" +expect eof -- 2.39.5