summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-10-18 22:46:50 +0200
committerDan McGee <dan@archlinux.org>2011-11-20 21:39:33 -0600
commit2f96067fe71e796e9da378620ad16a9f94a7b8ac (patch)
treecc225cb67bdacc171164c543ae01b520e7a14c58 /src
parent5ba8b83b8be55b9d7a55cc8bfdef80c37117101d (diff)
downloadpacman-2f96067fe71e796e9da378620ad16a9f94a7b8ac.tar.xz
change gpg import message to resemble gpg --list-keys
Dan: const pointers, don't worry about bitfields. Signed-off-by: Florian Pritz <bluewind@xinu.at> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 3889c088..4b2ad2aa 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -347,10 +347,14 @@ void cb_question(alpm_question_t event, void *data1, void *data2,
{
alpm_pgpkey_t *key = data1;
char created[12];
+ const char *revoked = "";
time_t time = (time_t)key->created;
strftime(created, 12, "%Y-%m-%d", localtime(&time));
- *response = yesno(_(":: Import PGP key %s, \"%s\", created %s?"),
- key->fingerprint, key->uid, created);
+ if (key->revoked) {
+ revoked = " (revoked)";
+ }
+ *response = yesno(_(":: Import PGP key %d/%s, \"%s\", created: %s%s?"),
+ key->length, key->fingerprint, key->uid, created, revoked);
}
break;
}