forked from josch/mmdebstrap
tests/ascii-armored-keys: convert key to armored using gpg instead of sed
This commit is contained in:
parent
1c67ac111a
commit
44cf2f94a6
1 changed files with 1 additions and 3 deletions
|
@ -13,9 +13,7 @@ rmdir /etc/apt/trusted.gpg.d
|
||||||
mkdir /etc/apt/trusted.gpg.d
|
mkdir /etc/apt/trusted.gpg.d
|
||||||
for f in /usr/share/keyrings/*.gpg; do
|
for f in /usr/share/keyrings/*.gpg; do
|
||||||
name=$(basename "$f" .gpg)
|
name=$(basename "$f" .gpg)
|
||||||
gpg --enarmor < "/usr/share/keyrings/$name.gpg" \
|
gpg --no-default-keyring --keyring="/usr/share/keyrings/$name.gpg" --armor --output="/etc/apt/trusted.gpg.d/$name.asc" --export
|
||||||
| sed 's/ PGP ARMORED FILE/ PGP PUBLIC KEY BLOCK/;/^Comment: /d' \
|
|
||||||
> "/etc/apt/trusted.gpg.d/$name.asc"
|
|
||||||
rm "/usr/share/keyrings/$name.gpg"
|
rm "/usr/share/keyrings/$name.gpg"
|
||||||
done
|
done
|
||||||
{{ CMD }} --mode=root --variant=apt {{ DIST }} /tmp/debian-chroot.tar {{ MIRROR }}
|
{{ CMD }} --mode=root --variant=apt {{ DIST }} /tmp/debian-chroot.tar {{ MIRROR }}
|
||||||
|
|
Loading…
Reference in a new issue