[pacman-dev] CVS update of pacman-lib/src/pacman (pacman.c)

dan at archlinux.org dan at archlinux.org
Fri Feb 9 12:58:20 EST 2007


    Date: Friday, February 9, 2007 @ 12:58:20
  Author: dan
    Path: /home/cvs-pacman/pacman-lib/src/pacman

Modified: pacman.c (1.90 -> 1.91)

* Remove "error: " text from ERR() call since it is appended by ERR anyway.


----------+
 pacman.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


Index: pacman-lib/src/pacman/pacman.c
diff -u pacman-lib/src/pacman/pacman.c:1.90 pacman-lib/src/pacman/pacman.c:1.91
--- pacman-lib/src/pacman/pacman.c:1.90	Fri Feb  9 11:02:01 2007
+++ pacman-lib/src/pacman/pacman.c	Fri Feb  9 12:58:19 2007
@@ -296,7 +296,7 @@
 						case 2: logmask |= PM_LOG_DOWNLOAD; /*fall through */
 						case 1: logmask |= PM_LOG_DEBUG; break;
 						default:
-						  ERR(NL, _("error: '%s' is not a valid debug level"), optarg);
+						  ERR(NL, _("'%s' is not a valid debug level"), optarg);
 							return(1);
 					}
 					printf("logmask = %d\n", logmask);
@@ -332,7 +332,7 @@
 				break;
 			case 'b':
 			  if(stat(optarg, &st) == -1 || !S_ISDIR(st.st_mode)) {
-					ERR(NL, _("error: '%s' is not a valid db path\n"), optarg);
+					ERR(NL, _("'%s' is not a valid db path\n"), optarg);
 					return(1);
 				}
 				alpm_option_set_dbpath(optarg);
@@ -362,7 +362,7 @@
 				break;
 			case 'r':
 				if(realpath(optarg, root) == NULL) {
-					ERR(NL, _("error: '%s' is not a valid root path\n"), optarg);
+					ERR(NL, _("'%s' is not a valid root path\n"), optarg);
 					return(1);
 				}
 				alpm_option_set_root(strdup(root));




More information about the pacman-dev mailing list