diff options
author | Dan McGee <dan@archlinux.org> | 2008-12-07 20:20:25 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 09:16:29 +0100 |
commit | 061948597dd0fc4fda4197b7bfca6f730c43b9c8 (patch) | |
tree | d4605449401a7777d49dfbd9221b2f5131d6a954 | |
parent | 4ae902ec5fb286a7826214f73f718a41cdf82ddb (diff) | |
download | pacman-061948597dd0fc4fda4197b7bfca6f730c43b9c8.tar.gz pacman-061948597dd0fc4fda4197b7bfca6f730c43b9c8.tar.xz |
Add some error codes for signature verification
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | lib/libalpm/alpm.h | 3 | ||||
-rw-r--r-- | lib/libalpm/error.c | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index faba1330..1c8d232e 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -526,6 +526,9 @@ enum _pmerrno_t { PM_ERR_PKG_INVALID_NAME, PM_ERR_PKG_INVALID_ARCH, PM_ERR_PKG_REPO_NOT_FOUND, + /* Signatures */ + PM_ERR_SIG_INVALID, + PM_ERR_SIG_UNKNOWN, /* Deltas */ PM_ERR_DLT_INVALID, PM_ERR_DLT_PATCHFAILED, diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c index dcf26074..71c058f6 100644 --- a/lib/libalpm/error.c +++ b/lib/libalpm/error.c @@ -115,6 +115,11 @@ const char SYMEXPORT *alpm_strerror(int err) return _("package architecture is not valid"); case PM_ERR_PKG_REPO_NOT_FOUND: 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 */ case PM_ERR_DLT_INVALID: return _("invalid or corrupted delta"); |