diff options
author | Dan McGee <dan@archlinux.org> | 2011-09-20 16:49:50 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-09-22 10:35:52 -0500 |
commit | 0a4a5cea97f75d5d38e9cb33d5f47f0c36c0dffb (patch) | |
tree | a9e86d18bf96f1d87c1d66fe043d3da7bcdb7c9b /src | |
parent | 3e4749fe3ec3f14e4107363a85b953b4a0a747f7 (diff) | |
download | pacman-0a4a5cea97f75d5d38e9cb33d5f47f0c36c0dffb.tar.xz |
Add new import key question enum value and stub frontend function
This is for eventual use by the PGP key import code. Breaking this into
a separate commit now makes the following patches a bit easier to
understand.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/callback.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c index a01fc07e..9d4663a0 100644 --- a/src/pacman/callback.c +++ b/src/pacman/callback.c @@ -342,6 +342,15 @@ void cb_question(alpm_question_t event, void *data1, void *data2, (char *)data1, alpm_strerror(*(enum _alpm_errno_t *)data2)); break; + case ALPM_QUESTION_IMPORT_KEY: + { + alpm_pgpkey_t *key = data1; + char created[12]; + strftime(created, 12, "%Y-%m-%d", localtime(&(key->created))); + *response = yesno(_(":: Import PGP key %s, \"%s\", created %s?"), + key->fingerprint, key->uid, created); + } + break; } if(config->noask) { if(config->ask & event) { |