1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-12 04:15:06 -05:00

Add some error codes for signature verification

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2008-12-07 13:20:25 -06:00
parent 4ae902ec5f
commit 061948597d
2 changed files with 8 additions and 0 deletions

View File

@ -526,6 +526,9 @@ enum _pmerrno_t {
PM_ERR_PKG_INVALID_NAME, PM_ERR_PKG_INVALID_NAME,
PM_ERR_PKG_INVALID_ARCH, PM_ERR_PKG_INVALID_ARCH,
PM_ERR_PKG_REPO_NOT_FOUND, PM_ERR_PKG_REPO_NOT_FOUND,
/* Signatures */
PM_ERR_SIG_INVALID,
PM_ERR_SIG_UNKNOWN,
/* Deltas */ /* Deltas */
PM_ERR_DLT_INVALID, PM_ERR_DLT_INVALID,
PM_ERR_DLT_PATCHFAILED, PM_ERR_DLT_PATCHFAILED,

View File

@ -115,6 +115,11 @@ const char SYMEXPORT *alpm_strerror(int err)
return _("package architecture is not valid"); return _("package architecture is not valid");
case PM_ERR_PKG_REPO_NOT_FOUND: case PM_ERR_PKG_REPO_NOT_FOUND:
return _("could not find repository for target"); return _("could not find repository for target");
/* Signatures */
case PM_ERR_SIG_INVALID:
return _("invalid PGP signature");
case PM_ERR_SIG_UNKNOWN:
return _("unknown PGP signature");
/* Deltas */ /* Deltas */
case PM_ERR_DLT_INVALID: case PM_ERR_DLT_INVALID:
return _("invalid or corrupted delta"); return _("invalid or corrupted delta");