summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-12 17:32:54 -0500
committerDan McGee <dan@archlinux.org>2011-10-12 17:54:08 -0500
commit12642a299b9f4218f43ce8a4f1d9924cfae744ee (patch)
tree99498034421b8eab4cd5381fa7236e78de903d34 /lib/libalpm
parent2a18171afa9ba8acf1123355f252b1189aefeeeb (diff)
downloadpacman-12642a299b9f4218f43ce8a4f1d9924cfae744ee.tar.xz
Add user-visible warning message if public keyring not found
This should help point users in the right direction if they have not initialized via pacman-key just yet. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/signing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/signing.c b/lib/libalpm/signing.c
index 4042efbd..bdaa83ad 100644
--- a/lib/libalpm/signing.c
+++ b/lib/libalpm/signing.c
@@ -140,6 +140,9 @@ static int init_gpgme(alpm_handle_t *handle)
|| _alpm_access(handle, sigdir, "trustdb.gpg", R_OK)) {
handle->pm_errno = ALPM_ERR_NOT_A_FILE;
_alpm_log(handle, ALPM_LOG_DEBUG, "Signature verification will fail!\n");
+ _alpm_log(handle, ALPM_LOG_WARNING,
+ _("Public keyring not found; have you run '%s'?\n"),
+ "pacman-key --init");
}
/* calling gpgme_check_version() returns the current version and runs