aboutsummaryrefslogtreecommitdiff
path: root/pdebuild
diff options
context:
space:
mode:
Diffstat (limited to 'pdebuild')
-rw-r--r--pdebuild9
1 files changed, 8 insertions, 1 deletions
diff --git a/pdebuild b/pdebuild
index 45725b6..0b1a1ec 100644
--- a/pdebuild
+++ b/pdebuild
@@ -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