]> git.corax.cc Git - foundry/commitdiff
buildbot: Use dpkg-buildpackage -k instead of --sign-key
authorMatthias Kruk <m@m10k.eu>
Sun, 25 Apr 2021 03:48:50 +0000 (12:48 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 25 Apr 2021 03:48:50 +0000 (12:48 +0900)
Older versions of dpkg-buildpackage don't understand the --sign-key
option. With such versions, the -k option has to be used instead.
This commit changes buildbot to pass the key to dpkg-buildpackage
using the -k option.

buildbot.sh

index 86a8a993fc5c552aa15f3896ece946b82bc70110..a1e9f77c7dec55451212a9b6e94ecc4022506cf8 100755 (executable)
@@ -10,7 +10,7 @@ build_packages() {
 
        npkgs=0
 
-       if ! output=$(cd "$sourcetree" && dpkg-buildpackage --sign-key="$gpgkey"); then
+       if ! output=$(cd "$sourcetree" && dpkg-buildpackage "-k$gpgkey"); then
                log_error "Could not build $sourcetree"
                echo "$output" | log_highlight "dpkg-buildpackage" | log_error