mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
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>
This commit is contained in:
parent
2a18171afa
commit
12642a299b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user