Commit f54c7fd1 authored by Jelmer Vernooij's avatar Jelmer Vernooij

Add fixer for public-upstream-key-not-minimal.

parent e76e2347
......@@ -5,6 +5,7 @@ lintian-brush (0.9) UNRELEASED; urgency=medium
* Don't attempt to remove python*-*-dbg packages; they include _d.so
files that are not in -dbgsym packages.
* Don't traceback when no .git directory is found.
* Add fixer for public-upstream-key-not-minimal.
-- Jelmer Vernooij <jelmer@debian.org> Fri, 23 Nov 2018 13:59:02 +0000
......
......@@ -67,6 +67,9 @@ Lintian-Tags: package-uses-deprecated-debhelper-compat-version
Fix-Script: priority-extra-is-replaced-by-priority-optional.py
Lintian-Tags: priority-extra-is-replaced-by-priority-optional
Fix-Script: public-upstream-key-not-minimal.sh
Lintian-Tags: public-upstream-key-not-minimal
Fix-Script: quilt-series-without-trailing-newline.sh
Lintian-Tags: quilt-series-without-trailing-newline
......
#!/bin/sh
TEMP_KEYRING=$(mktemp)
run_gpg() {
gpg --no-default-keyring --keyring "${TEMP_KEYRING}" "$@"
}
gpg_export() {
run_gpg --export-options export-minimal,export-clean --export "$@"
}
if [ -f debian/upstream/signing-key.asc ]; then
run_gpg --import debian/upstream/signing-key.asc
gpg_export --armor > debian/upstream/signing-key.asc
fi
if [ -f debian/upstream/signing-key.pgp ]; then
run_gpg --import debian/upstream/signing-key.pgp
gpg_export > debian/upstream/signing-key.pgp
fi
echo "Re-export upstream signing key without extra signatures."
echo "Fixed-Lintian-Tags: public-upstream-key-not-minimal"
Re-export upstream signing key without extra signatures.
Fixed-Lintian-Tags: public-upstream-key-not-minimal
#!/bin/sh
# TODO: re-export with;
# gpg --armor --export --export-options export-minimal,export-clean
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment