From ea1fef69add040b9e5b1de6e9238eda4576ccd3f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 10 Jul 2007 14:24:58 -0400 Subject: Remove gettext calls from all PM_LOG_DEBUG messages There is no real reason to burden our translators with these messages, as anyone helping to debug these will probably want them in English. Signed-off-by: Dan McGee --- lib/libalpm/handle.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/libalpm/handle.c') diff --git a/lib/libalpm/handle.c b/lib/libalpm/handle.c index b1fd45f2..759c14cf 100644 --- a/lib/libalpm/handle.c +++ b/lib/libalpm/handle.c @@ -153,6 +153,7 @@ void SYMEXPORT alpm_option_set_root(const char *root) if(realroot) { free(realroot); } + _alpm_log(PM_LOG_DEBUG, "option 'root' = %s", handle->root); } void SYMEXPORT alpm_option_set_dbpath(const char *dbpath) @@ -170,11 +171,13 @@ void SYMEXPORT alpm_option_set_dbpath(const char *dbpath) handle->dbpath = calloc(dbpathlen+1, sizeof(char)); strncpy(handle->dbpath, dbpath, dbpathlen); handle->dbpath[dbpathlen-1] = '/'; + _alpm_log(PM_LOG_DEBUG, "option 'dbpath' = %s", handle->dbpath); const char *lf = "db.lck"; int lockfilelen = strlen(handle->dbpath) + strlen(lf); handle->lockfile = calloc(lockfilelen + 1, sizeof(char)); snprintf(handle->lockfile, lockfilelen, "%s%s", handle->dbpath, lf); + _alpm_log(PM_LOG_DEBUG, "option 'lockfile' = %s", handle->lockfile); } } @@ -194,7 +197,7 @@ void SYMEXPORT alpm_option_add_cachedir(const char *cachedir) strncpy(newcachedir, cachedir, cachedirlen); newcachedir[cachedirlen-1] = '/'; handle->cachedirs = alpm_list_add(handle->cachedirs, newcachedir); - _alpm_log(PM_LOG_DEBUG, _("option 'cachedir' = %s"), newcachedir); + _alpm_log(PM_LOG_DEBUG, "option 'cachedir' = %s", newcachedir); } } -- cgit v1.2.3-24-g4f1b