summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-08-08 17:11:14 -0500
committerDan McGee <dan@archlinux.org>2011-08-08 17:11:14 -0500
commit09f950af073ca82b03ef50dd6402fd72491a4770 (patch)
tree3e990bfc9c69af8ac05574c14c54660ae3bd0a74 /lib
parent8fa330335f9eb465724ed778464502f844e930ae (diff)
_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>
Diffstat (limited to 'lib')
-rw-r--r--lib/libalpm/util.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index 123cd24e..bd0526ce 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -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;