+ Add patch to flatten output structure for small keyrings.
(Closes: #309101)
+ Update config.{sub,guess}. (Closes: #365148)
+ + Add patch by Stephan Beyer to improve process_keys' input parsing,
+ remedying to need of weird grep and sed commands. (Closes: #370571)
* Put examples in .../examples/$prog, not the other way round.
* Use dh_lintian.
- -- Christoph Berg <myon@debian.org> Fri, 18 Jul 2008 15:18:42 +0200
+ -- Christoph Berg <myon@debian.org> Fri, 18 Jul 2008 15:30:06 +0200
signing-party (1.0-2) unstable; urgency=low
# comment these next lines out if you are working with an existing
# preprocess.keys file
-pgpring -S -k $1 \
- | grep "\(pub\|sig\|rev\|uid\)" \
- | sed -e "s/^\([a-z]*\).*:\([0-9A-F]\{16\}\):.*/\1 \2/g" \
- -e "s/^uid:.*/uid/" > all.keys
-cat all.keys | process_keys $2 > preprocess.keys
+pgpring -S -k "$1" | process_keys $2 > preprocess.keys
# the actual processing of the main report
keyanalyze
and turns it into suitable input for
.BR keyanalyze (1).
+.B pgpring
+must be called with the
+.B -S
+option to also dump signatures.
+
It acts as a filter, reading from stdin and writing to stdout.
.SH OPTIONS
while (fgets (buff, sizeof (buff), stdin))
{
- if ((s = strtok (buff, " \t\r\n")))
+ if ((s = strtok (buff, ":")))
{
if (!strcmp (s, "pub"))
{
lastuid = &k->uids->next;
lastsig = &k->uids->sigs;
-
- sprintf (k->id, "%.16s", strtok (NULL, " \t\r\n"));
+
+ strtok (NULL, ":");
+ strtok (NULL, ":");
+ strtok (NULL, ":");
+
+ sprintf (k->id, "%s", strtok (NULL, ":"));
}
else if (!strcmp (s, "rev"))
k->rev = 1;
{
struct sig *sig = *lastsig = new_sig();
lastsig = &sig->next;
- sprintf (sig->id, "%.16s", strtok (NULL, " \t\r\n"));
+ sprintf (sig->id, "%s", strtok (NULL, ":"));
}
}
}