[pkg-gnupg-maint] Bug#851774: Stop using apt-key add to add keys in generators/60local
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Sun Feb 5 00:46:05 UTC 2017
On Sat 2017-02-04 19:35:58 -0500, Daniel Kahn Gillmor wrote:
> Over in #831409, i mentioned this simple pipeline to perform the actual
> transformation:
>
> awk '/^$/{ x = 1; } /^[^=-]/{ if (x) { print $0; } ; }' | base64 -d
>
> Unfortunately, it looks to me like busybox doesn't offer a base64 applet
> at the moment, which would otherwise allow d-i to do the de-armoring
> entirely with busybox. I could probably knock that applet together if
> people want it -- it looks like busybox already has b64 subroutines in
> it.
ah, no need for a base64 applet, since busybox has a uudecode applet.
using only busybox, the following pipeline should be fine for
de-armoring:
awk 'BEGIN{ print "begin-base64 644 -" } /^$/{ x = 1; } /^[^=-]/{ if (x) { print $0; } ; } END{ print "====" }' | uudecode
hth,
--dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnupg-maint/attachments/20170204/9a18106a/attachment.sig>
More information about the pkg-gnupg-maint
mailing list