xbps-rkeys: print the error if pubkey cannot be imported.
This commit is contained in:
parent
3bb7168935
commit
f39f7ff2fa
@ -82,7 +82,13 @@ state_cb(struct xbps_state_cb_data *xscd, void *cbd _unused)
|
|||||||
static int
|
static int
|
||||||
repo_import_key_cb(struct xbps_repo *repo, void *arg _unused, bool *done _unused)
|
repo_import_key_cb(struct xbps_repo *repo, void *arg _unused, bool *done _unused)
|
||||||
{
|
{
|
||||||
return xbps_repo_key_import(repo);
|
int rv;
|
||||||
|
|
||||||
|
rv = xbps_repo_key_import(repo);
|
||||||
|
if (rv != 0)
|
||||||
|
fprintf(stderr, "Failed to import pubkey from %s: %s\n", repo->uri, strerror(rv));
|
||||||
|
|
||||||
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
Loading…
Reference in New Issue
Block a user