[pacman-dev] [PATCH] Handle PM_ERR_WRITE in alpm_strerror()

Pang Yan Han pangyanhan at gmail.com
Fri Feb 4 10:34:16 EST 2011


PM_ERR_WRITE is defined in alpm.h but not handled in
alpm_strerror(). This patch corrects that.

Signed-off-by: Pang Yan Han <pangyanhan at gmail.com>
---
 lib/libalpm/error.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/lib/libalpm/error.c b/lib/libalpm/error.c
index 1b144a5..2cc6685 100644
--- a/lib/libalpm/error.c
+++ b/lib/libalpm/error.c
@@ -135,6 +135,8 @@ const char SYMEXPORT *alpm_strerror(int err)
 		/* Miscellaenous */
 		case PM_ERR_RETRIEVE:
 			return _("failed to retrieve some files");
+		case PM_ERR_WRITE:
+			return _("failed to copy some file");
 		case PM_ERR_INVALID_REGEX:
 			return _("invalid regular expression");
 		/* Errors from external libraries- our own wrapper error */
-- 
1.7.4



More information about the pacman-dev mailing list