diff options
author | Florian Pritz <bluewind@xinu.at> | 2011-10-20 20:39:28 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-20 21:40:19 -0600 |
commit | 2141b7112d237221280781bed2b2bb6efadc963e (patch) | |
tree | 47e086e4e4ed877efecd10f5796b1a6672712682 /src | |
parent | 2f96067fe71e796e9da378620ad16a9f94a7b8ac (diff) | |
download | pacman-2141b7112d237221280781bed2b2bb6efadc963e.tar.xz |
add key algo to import msg
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.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index 4b2ad2aa..2d989ba9 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -350,11 +350,13 @@ void cb_question(alpm_question_t event, void *data1, void *data2, const char *revoked = ""; time_t time = (time_t)key->created; strftime(created, 12, "%Y-%m-%d", localtime(&time)); + if (key->revoked) { revoked = " (revoked)"; } - *response = yesno(_(":: Import PGP key %d/%s, \"%s\", created: %s%s?"), - key->length, key->fingerprint, key->uid, created, revoked); + + *response = yesno(_(":: Import PGP key %d%c/%s, \"%s\", created: %s%s?"), + key->length, key->pubkey_algo, key->fingerprint, key->uid, created, revoked); } break; } |