aboutsummaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
authorLuiz Ramos2012-07-22 21:45:47 -0300
committerJason Woodward2012-08-02 13:47:05 +0000
commitcab5cd008c766df8c3708745416491eb4888b749 (patch)
tree2e8931dec2a471164a3b94726c26158d2ad09836 /src/package.c
parentf9ad0aab997785b1bb0348f8ea9f1e9b5f0989f2 (diff)
downloadslapt-get-cab5cd008c766df8c3708745416491eb4888b749.tar.gz
show some additional information when signature is not verified
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/package.c b/src/package.c
index 68b63a4..e5d58cc 100644
--- a/src/package.c
+++ b/src/package.c
@@ -2015,7 +2015,7 @@ int slapt_update_pkg_cache(const slapt_rc_config *global_config)
}
if (tmp_signature_f != NULL && tmp_checksum_to_verify_f != NULL) {
- slapt_code_t verified = SLAPT_CHECKSUMS_NOT_VERIFIED;
+ slapt_code_t verified = SLAPT_CHECKSUMS_NOT_VERIFIED_UNKNOWN;
printf(gettext("Verifying checksum signature [%s]..."), source_url);
verified = slapt_gpg_verify_checksums(tmp_checksum_to_verify_f, tmp_signature_f);
if (verified == SLAPT_CHECKSUMS_VERIFIED) {
@@ -2023,7 +2023,7 @@ int slapt_update_pkg_cache(const slapt_rc_config *global_config)
} else if (verified == SLAPT_CHECKSUMS_MISSING_KEY) {
printf("%s\n",gettext("No key for verification"));
} else {
- printf("%s\n",gettext("Not Verified"));
+ printf("%s\n",gettext(slapt_strerror(verified)));
source_dl_failed = 1;
fclose(tmp_checksum_f);
tmp_checksum_f = NULL;