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.
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