summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2016-11-01 13:33:18 +0100
committerHolger Levsen <holger@layer-acht.org>2016-11-01 13:33:18 +0100
commit76ed178c07ef5ed7f430abb91a61f58730308510 (patch)
treee9078a0add9414229d99cbf325951e6375f18f04
parentee5f529596c86d86999d6a0b69166654568be587 (diff)
downloadjenkins.debian.net-76ed178c07ef5ed7f430abb91a61f58730308510.tar.xz
reproducible Debian: correct pathes when signing .buildinfo files
-rwxr-xr-xbin/reproducible_build.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 9fd1299e..e162a5eb 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -774,9 +774,10 @@ check_buildinfo() {
}
sign_buildinfo() {
- log_info "Signing $BUILDINFO as $BUILDINFO_SIGNED"
- gpg --output=$BUILDINFO_SIGNED --clearsign $BUILDINFO || log_error "Could not sign $BUILDINFO"
- log_info "Signed $BUILDINFO as $BUILDINFO_SIGNED"
+ local $BUILDPATH = "./$1"
+ log_info "Signing $BUILDPATH/$BUILDINFO as $BUILDINFO_SIGNED"
+ gpg --output=$BUILDPATH/$BUILDINFO_SIGNED --clearsign $BUILDPATH/$BUILDINFO || log_error "Could not sign $PWD/$BUILDPATH/$BUILDINFO"
+ log_info "Signed $BUILDPATH/$BUILDINFO as $BUILDPATH/$BUILDINFO_SIGNED"
}
share_buildinfo() {
@@ -857,7 +858,7 @@ elif [ "$1" = "1" ] || [ "$1" = "2" ] ; then
else
second_build
fi
- sign_buildinfo
+ sign_buildinfo "b$MODE"
echo "$(date -u) - build #$MODE for $SRCPACKAGE/$SUITE/$ARCH on $HOSTNAME done."
exit 0
elif [ "$2" != "" ] ; then