xbps-rkeys: print the error if pubkey cannot be imported.

This commit is contained in:
Juan RP 2013-10-28 12:46:23 +01:00
parent 3bb7168935
commit f39f7ff2fa

View File

@ -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