This is a workaround for GPG returning a non-zero exit status when
importing lxo's key, due to signatures being missing, even though the
key is actually imported.
:
for keyfile in keys/*.asc
do
- rm -f $package/usr/share/keyrings/$package.gpg
- gpg --verbose --no-default-keyring --keyring $package/usr/share/keyrings/$package.gpg --import $keyfile || true
+ gpg --verbose --no-default-keyring --keyring $package/usr/share/keyrings/$package.gpg --import $keyfile || gpg --no-default-keyring --keyring $package/usr/share/keyrings/$package.gpg --import $keyfile
done
dpkg-deb --root-owner-group -b $package
done
\ No newline at end of file