From 9fbfc2b9da4480ba244ed70176e74b00c2f06e11 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Mon, 29 Aug 2016 15:07:11 +0100 Subject: [PATCH] byhand-code-sign: Use script path, not suite name, to find the config directory At this point the suite name for a security upload no longer has the '-security' suffix. --- scripts/debian/byhand-code-sign | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/debian/byhand-code-sign b/scripts/debian/byhand-code-sign index 8038813e..60927014 100755 --- a/scripts/debian/byhand-code-sign +++ b/scripts/debian/byhand-code-sign @@ -23,13 +23,16 @@ error() { export OPENSSL_CONF=/dev/null # Read dak configuration for security or main archive -case "$SUITE" in - *-security) +case "$0" in + /srv/security-master.debian.org/*) configdir="/srv/security-master.debian.org/dak/config/debian-security" ;; - *) + /srv/ftp-master.debian.org/*) configdir="/srv/ftp-master.debian.org/dak/config/debian" ;; + *) + error "$0: Can't tell if security or not" + ;; esac . "$configdir/vars" -- 2.39.5