summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-11-30 02:01:52 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2013-11-30 02:01:52 +0100
commitba3a2f2d37f1b7e6273181b03de43adeba157411 (patch)
tree053264b65a367a9298c9cabee28f89796cfe2047 /bin
parent913815ee0feb071c059235e8ae24d57ab4b8175f (diff)
downloadbuildscripts-ba3a2f2d37f1b7e6273181b03de43adeba157411.tar.gz
buildscripts-ba3a2f2d37f1b7e6273181b03de43adeba157411.tar.bz2
buildscripts-ba3a2f2d37f1b7e6273181b03de43adeba157411.zip
run rpmsign in an unattended way
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-rpm-package4
-rw-r--r--bin/rpmsign-unattended6
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/build-rpm-package b/bin/build-rpm-package
index 9dc2c5b..1a4659f 100755
--- a/bin/build-rpm-package
+++ b/bin/build-rpm-package
@@ -216,11 +216,11 @@ build_packages() {
if [ "x$SKIP_ARCH" != "xx86_64" ] || [ "$IS_NOARCH" = "yes" ]; then
mock -r ${l_DIST}-${l_CODENAME}-x86_64 --result $PKGDIST/$l_DIST/$l_CODENAME/x86_64 $PKGDIST/rpmbuild/SRPMS/$PROJECT-$UPSTREAM_VERSION-$PKG_SRCRELEASE.$IS_RELEASE.git$DATE.$GITREV.$COMPONENT.src.rpm
- rpmsign -D "%_gpg_name debian@x2go.org" --addsign $PKGDIST/$l_DIST/$l_CODENAME/x86_64/*.rpm
+ rpmsign-unattended -D "%_gpg_name debian@x2go.org" --addsign $PKGDIST/$l_DIST/$l_CODENAME/x86_64/*.rpm
fi
if [ "x$SKIP_ARCH" != "xi386" ] && [ "$IS_NOARCH" != "yes" ]; then
mock -r ${l_DIST}-${l_CODENAME}-i386 --result $PKGDIST/$l_DIST/$l_CODENAME/i386 $PKGDIST/rpmbuild/SRPMS/$PROJECT-$UPSTREAM_VERSION-$PKG_SRCRELEASE.$IS_RELEASE.git$DATE.$GITREV.$COMPONENT.src.rpm
- rpmsign -D "%_gpg_name debian@x2go.org" --addsign $PKGDIST/$l_DIST/$l_CODENAME/i386/*.rpm
+ rpmsign-unattended -D "%_gpg_name debian@x2go.org" --addsign $PKGDIST/$l_DIST/$l_CODENAME/i386/*.rpm
fi
done
}
diff --git a/bin/rpmsign-unattended b/bin/rpmsign-unattended
new file mode 100644
index 0000000..62da087
--- /dev/null
+++ b/bin/rpmsign-unattended
@@ -0,0 +1,6 @@
+#!/usr/bin/expect -f
+
+spawn rpmsign {*}$argv
+expect -exact "Enter pass phrase: "
+send -- "\r"
+expect eof