Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/handle.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-07-10 14:24:58 -0400
committerDan McGee <dan@archlinux.org>2007-07-10 14:24:58 -0400
commitea1fef69add040b9e5b1de6e9238eda4576ccd3f (patch)
treef1f99bdb3ca0dd5b0360c33bda4ea14d7ecb72e5 /lib/libalpm/handle.c
parent9a9928f1b88f4fa08826aa83ff16e6ef38bd4e6c (diff)
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 <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/handle.c')
-rw-r--r--lib/libalpm/handle.c5
1 files changed, 4 insertions, 1 deletions
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);
}
}