aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-user-mode-linux
diff options
context:
space:
mode:
Diffstat (limited to 'pdebuild-user-mode-linux')
-rw-r--r--pdebuild-user-mode-linux8
1 files changed, 7 insertions, 1 deletions
diff --git a/pdebuild-user-mode-linux b/pdebuild-user-mode-linux
index 3fc7934..b08f8b1 100644
--- a/pdebuild-user-mode-linux
+++ b/pdebuild-user-mode-linux
@@ -49,6 +49,12 @@ else
pbuilder-user-mode-linux build "$@" --buildresult "${UML_BUILDRESULT}" --debbuildopts "${DEBBUILDOPTS}" ../"${PKG_SOURCENAME}_${PKG_VERSION}".dsc
fi
+# do signing with optional key specifier
if [ "${AUTO_DEBSIGN}" = "yes" ]; then
- debsign "${UML_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]="${UML_BUILDRESULT}/${PKG_SOURCENAME}_${PKG_VERSION}_${ARCHITECTURE}.changes"
+ debsign "${DEBSIGN_PARAM[@]}"
fi