From: Gary Lowell Date: Fri, 8 Mar 2013 05:03:18 +0000 (-0800) Subject: rpm-autosign.exp: New utility to help sign rpms. X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=268aa22e315f9fe8ae310a1fe67c1ff2a8cfbe47;p=autobuild-ceph.git 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 --- 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