summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/error.c
diff options
context:
space:
mode:
authorAllan McRae <allan@archlinux.org>2013-05-19 14:41:01 +0200
committerAllan McRae <allan@archlinux.org>2013-05-29 06:08:03 +0200
commitdc08eca368de31b85e27063160e73b75b91bc58f (patch)
tree77ce330cd2f9cb58ad3ff4286e703d48a6c8461f /lib/libalpm/error.c
parent9555ec714a2113144b0bb09e468662d67f60857e (diff)
downloadpacman-dc08eca368de31b85e27063160e73b75b91bc58f.tar.gz
pacman-dc08eca368de31b85e27063160e73b75b91bc58f.tar.xz
Improve error message when package is missing required signature
When attempting to install a package (either via -S or -U) and the signature is missing, the current error message "invalid or corrupted package (PGP signature)" is very unclear. Instead inform the user that the package is missing the required signature. Partial fix for FS#34741. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/error.c')
-rw-r--r--lib/libalpm/error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index a59f4fe1..86221807 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -111,6 +111,8 @@ const char SYMEXPORT *alpm_strerror(alpm_errno_t err)
return _("invalid or corrupted package (checksum)");
case ALPM_ERR_PKG_INVALID_SIG:
return _("invalid or corrupted package (PGP signature)");
+ case ALPM_ERR_PKG_MISSING_SIG:
+ return _("package missing required signature");
case ALPM_ERR_PKG_OPEN:
return _("cannot open package file");
case ALPM_ERR_PKG_CANT_REMOVE: