diff options
Diffstat (limited to 'pdebuild')
-rw-r--r-- | pdebuild | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -46,6 +46,13 @@ else ${PBUILDERROOTCMD} pbuilder build "$@" ${EXTRA_CONFIGFILE[@]/#/--configfile } --buildresult "${BUILDRESULT}" --debbuildopts "${DEBBUILDOPTS}" ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc fi +# do signing with optional key specifier if [ "${AUTO_DEBSIGN}" = "yes" ]; then - debsign "${BUILDRESULT}/${PKG_SOURCENAME}_${PKG_VERSION}_${ARCHITECTURE}.changes" + unset DEBSIGN_PARAM || true + if [ -n "${DEBSIGN_KEYID}" ]; then + DEBSIGN_PARAM[1]="-k${DEBSIGN_KEYID}" + fi + DEBSIGN_PARAM[2]="${BUILDRESULT}/${PKG_SOURCENAME}_${PKG_VERSION}_${ARCHITECTURE}.changes" + debsign "${DEBSIGN_PARAM[@]}" + fi |