mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
_alpm_access(): don't call gettext() in debug level loggers
This is standard procedure elsewhere and cuts down on translations that won't be seen (and we don't want if we need English debug output anyway). Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
8fa330335f
commit
09f950af07
@ -1011,16 +1011,20 @@ int _alpm_access(alpm_handle_t *handle, const char *dir, const char *file, int a
|
||||
|
||||
if(ret != 0) {
|
||||
if (amode & R_OK) {
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, _("\"%s%s\" is not readable: %s\n"), dir, file, strerror(errno));
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, "\"%s%s\" is not readable: %s\n",
|
||||
dir, file, strerror(errno));
|
||||
}
|
||||
if (amode & W_OK) {
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, _("\"%s%s\" is not writable: %s\n"), dir, file, strerror(errno));
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, "\"%s%s\" is not writable: %s\n",
|
||||
dir, file, strerror(errno));
|
||||
}
|
||||
if (amode & X_OK) {
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, _("\"%s%s\" is not executable: %s\n"), dir, file, strerror(errno));
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, "\"%s%s\" is not executable: %s\n",
|
||||
dir, file, strerror(errno));
|
||||
}
|
||||
if (amode == F_OK) {
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, _("\"%s%s\" does not exist: %s\n"), dir, file, strerror(errno));
|
||||
_alpm_log(handle, ALPM_LOG_DEBUG, "\"%s%s\" does not exist: %s\n",
|
||||
dir, file, strerror(errno));
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user