summaryrefslogtreecommitdiffstats
path: root/src/pacman/query.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-03-01 00:50:23 +0100
committerDan McGee <dan@archlinux.org>2011-03-01 00:50:23 +0100
commit09ce8b446c01e59a0eb0523846ce6f339ef25fa5 (patch)
tree9b1105babb144af1aa5129b12c75ce0f3c738eea /src/pacman/query.c
parent07538b948a0198808dcbe68bf838e520eb341fb3 (diff)
downloadpacman-09ce8b446c01e59a0eb0523846ce6f339ef25fa5.tar.gz
pacman-09ce8b446c01e59a0eb0523846ce6f339ef25fa5.tar.xz
Fix some easy to find double translations
A lot of these were places that should have used the same message but didn't, or were very easy to convert to using the same message and letting some of the burden off of the translators. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/query.c')
-rw-r--r--src/pacman/query.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pacman/query.c b/src/pacman/query.c
index 18c69922..bd23d466 100644
--- a/src/pacman/query.c
+++ b/src/pacman/query.c
@@ -184,7 +184,7 @@ static int query_fileowner(alpm_list_t *targets)
}
if(strlen(pkgfile) > max_length) {
- pm_fprintf(stderr, PM_LOG_ERROR, _("Path too long: %s%s\n"), root, pkgfile);
+ pm_fprintf(stderr, PM_LOG_ERROR, _("path too long: %s%s\n"), root, pkgfile);
}
/* concatenate our file and the root path */
strcpy(append, pkgfile);
@@ -399,7 +399,7 @@ static int check(pmpkg_t *pkg)
rootlen = strlen(root);
if(rootlen + 1 > PATH_MAX) {
/* we are in trouble here */
- pm_fprintf(stderr, PM_LOG_ERROR, _("root path too long\n"));
+ pm_fprintf(stderr, PM_LOG_ERROR, _("path too long: %s%s\n"), root, "");
return(1);
}
strcpy(f, root);
@@ -410,7 +410,7 @@ static int check(pmpkg_t *pkg)
const char *path = alpm_list_getdata(i);
if(rootlen + 1 + strlen(path) > PATH_MAX) {
- pm_fprintf(stderr, PM_LOG_WARNING, _("file path too long\n"));
+ pm_fprintf(stderr, PM_LOG_WARNING, _("path too long: %s%s\n"), root, path);
continue;
}
strcpy(f + rootlen, path);