summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index 25528100..f40f2d47 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -456,8 +456,14 @@ void cb_question(alpm_question_t *question)
case ALPM_QUESTION_IMPORT_KEY:
{
alpm_question_import_key_t *q = &question->import_key;
- q->import = yesno(_("Import PGP key %s, \"%s\"?"),
- q->key->fingerprint, q->key->uid);
+ /* the uid is unknown with db signatures */
+ if (q->key->uid == NULL) {
+ q->import = yesno(_("Import PGP key %s?"),
+ q->key->fingerprint);
+ } else {
+ q->import = yesno(_("Import PGP key %s, \"%s\"?"),
+ q->key->fingerprint, q->key->uid);
+ }
}
break;
}