mirror of
https://github.com/moparisthebest/pacman
synced 2024-08-13 17:03:46 -04:00
* Remove "error: " text from ERR() call since it is appended by ERR anyway.
This commit is contained in:
parent
7f1e75edf1
commit
79d18c2617
@ -296,7 +296,7 @@ static int parseargs(int argc, char *argv[])
|
||||
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 @@ static int parseargs(int argc, char *argv[])
|
||||
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 @@ static int parseargs(int argc, char *argv[])
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user