FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 02-04-2011, 02:34 PM
Pang Yan Han
 
Default Handle PM_ERR_WRITE in alpm_strerror()

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@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
 
Old 02-04-2011, 07:22 PM
Dan McGee
 
Default Handle PM_ERR_WRITE in alpm_strerror()

On Fri, Feb 4, 2011 at 9:34 AM, Pang Yan Han <pangyanhan@gmail.com> wrote:
> PM_ERR_WRITE is defined in alpm.h but not handled in
> alpm_strerror(). This patch corrects that.

Good catch, thanks!

-Dan
 

Thread Tools




All times are GMT. The time now is 08:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org