byhand-code-sign: Use script path, not suite name, to find the config directory
authorBen Hutchings <ben@decadent.org.uk>
Mon, 29 Aug 2016 14:07:11 +0000 (15:07 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 24 Sep 2016 23:55:09 +0000 (00:55 +0100)
At this point the suite name for a security upload no longer has the
'-security' suffix.

scripts/debian/byhand-code-sign

index 8038813..6092701 100755 (executable)
@@ -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"