Show a warning to the user if GPG fingerprint is absent
This commit is contained in:
parent
1bb1009ca9
commit
90bac69568
@ -45,6 +45,10 @@ On a build machine (Electric Commander), make sure the fingerprint is of the
|
||||
person who is supposed to sign the official uploads. You might also want to
|
||||
configure GnuPG to not ask for the passphrase while signing the Debian package.
|
||||
|
||||
The [Ubuntu Packaging Guide] contains documentation about creating a GPG key
|
||||
on an Ubuntu system.
|
||||
[Ubuntu Packaging Guide]:http://packaging.ubuntu.com/html/getting-set-up.html#create-your-gpg-key
|
||||
|
||||
####Windows (Cygwin)
|
||||
Below is a list of required packages for Windows (Win32-x86):
|
||||
|
||||
|
@ -20,6 +20,8 @@
|
||||
# Uncomment the following line to trace the execution of the shell commands
|
||||
# set -o xtrace
|
||||
|
||||
SIGNING_USER=$(gpg --fingerprint | grep uid | sed s/"uid *"//g | tr -s " ")
|
||||
|
||||
function tarball_deb {
|
||||
box_draw "Compressing compiled binaries to produce a bzip2 tarball"
|
||||
cd ${workdir}
|
||||
@ -165,8 +167,6 @@ EOF
|
||||
|
||||
echo "Create file: debian/changelog"
|
||||
|
||||
SIGNING_USER=$(gpg --fingerprint | grep uid | sed s/"uid *"//g | tr -s " ")
|
||||
|
||||
cat >> ${prefix}/debian/changelog << EOF
|
||||
cling (${VERSION}-1) unstable; urgency=low
|
||||
|
||||
@ -212,6 +212,10 @@ function check_ubuntu {
|
||||
then
|
||||
printf "%-10s\t\t[NOT INSTALLED]\n" "${1}"
|
||||
else
|
||||
printf "%-10s\t\t[OK]\n" "${1}"
|
||||
if [ ${1} = "gnupg" -a "${SIGNING_USER}" = "" ]; then
|
||||
printf "%-10s\t\t[INSTALLED - NOT SETUP]\n" "${1}"
|
||||
else
|
||||
printf "%-10s\t\t[OK]\n" "${1}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user