From 1df3b91931ea28fa6b279a976339f099a111238d Mon Sep 17 00:00:00 2001 From: Xavier Chantry Date: Thu, 17 Sep 2009 02:03:23 +0200 Subject: String improvements Add more untranslated strings, improve consistency, etc. Signed-off-by: Xavier Chantry Signed-off-by: Dan McGee --- src/pacman/pacman.c | 6 +++--- src/pacman/query.c | 4 ++-- src/pacman/sync.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 77c558d1..5298d662 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -130,7 +130,7 @@ static void usage(int op, const char * const myname) printf(_(" -l, --list view a list of packages in a repo\n")); printf(_(" -p, --print-uris print out URIs for given packages and their dependencies\n")); printf(_(" -s, --search search remote repositories for matching strings\n")); - printf(_(" -u, --sysupgrade upgrade all outdated packages (-uu enables downgrade)\n")); + printf(_(" -u, --sysupgrade upgrade installed packages (-uu allows downgrade)\n")); printf(_(" -w, --downloadonly download packages but do not install/upgrade anything\n")); printf(_(" -y, --refresh download fresh package databases from the server\n")); printf(_(" --needed don't reinstall up to date packages\n")); @@ -657,7 +657,7 @@ int download_with_xfercommand(const char *url, const char *localpath, /* cwd to the download directory */ getcwd(cwd, PATH_MAX); if(chdir(localpath)) { - pm_printf(PM_LOG_WARNING, "could not chdir to %s\n", localpath); + pm_printf(PM_LOG_WARNING, _("could not chdir to download directory %s\n"), localpath); ret = -1; goto cleanup; } @@ -666,7 +666,7 @@ int download_with_xfercommand(const char *url, const char *localpath, retval = system(parsedCmd); if(retval == -1) { - pm_printf(PM_LOG_WARNING, "running XferCommand: fork failed!\n"); + pm_printf(PM_LOG_WARNING, _("running XferCommand: fork failed!\n")); ret = -1; } else if(retval != 0) { /* download failed */ diff --git a/src/pacman/query.c b/src/pacman/query.c index a9717074..6b6a25db 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -344,7 +344,7 @@ static int check(pmpkg_t *pkg) if(config->quiet) { printf("%s %s\n", pkgname, f); } else { - pm_printf(PM_LOG_WARNING, "%s: missing %s (%s)\n", + pm_printf(PM_LOG_WARNING, "%s: %s (%s)\n", pkgname, f, strerror(errno)); } errors++; @@ -352,7 +352,7 @@ static int check(pmpkg_t *pkg) } if(!config->quiet) { - printf("%s: %d total, %d missing file(s)\n", + printf(_("%s: %d total files, %d missing file(s)\n"), pkgname, allfiles, errors); } diff --git a/src/pacman/sync.c b/src/pacman/sync.c index dc936219..12f67df2 100644 --- a/src/pacman/sync.c +++ b/src/pacman/sync.c @@ -682,7 +682,7 @@ static int sync_trans(alpm_list_t *targets) printf("%s/%s\n", dburl, alpm_pkg_get_filename(pkg)); } else { /* can't use WARNING here, we don't show warnings in -Sp... */ - pm_fprintf(stderr, PM_LOG_ERROR, _("no database for package: %s\n"), + pm_fprintf(stderr, PM_LOG_ERROR, _("no URL for package: %s\n"), alpm_pkg_get_name(pkg)); } -- cgit v1.2.3-24-g4f1b From 44cddb351b05bd629202b7cf9294c71852a542a9 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 18 Sep 2009 18:29:22 -0500 Subject: Kill -F option for good in option parsing Signed-off-by: Dan McGee --- src/pacman/pacman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 5298d662..16990957 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -379,7 +379,7 @@ static int parseargs(int argc, char *argv[]) {0, 0, 0, 0} }; - while((opt = getopt_long(argc, argv, "RUFQSTr:b:vkhscVfmnoldepqituwygz", opts, &option_index))) { + while((opt = getopt_long(argc, argv, "RUQSTr:b:vkhscVfmnoldepqituwygz", opts, &option_index))) { alpm_list_t *list = NULL, *item = NULL; /* lists for splitting strings */ if(opt < 0) { -- cgit v1.2.3-24-g4f1b From 6685822e575797b1e38a1e9364b72bb6bca2f52f Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Wed, 16 Sep 2009 21:22:11 +0200 Subject: Strndup usage and small typo fix ./src/pacman/package.c: - small typo fix ./src/pacman/pacman.c: - strdup is changed to strndup, because it's safer like in case of config option Signed-off-by: Laszlo Papp Signed-off-by: Dan McGee --- src/pacman/package.c | 2 +- src/pacman/pacman.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pacman/package.c b/src/pacman/package.c index 328d5bf6..3b145164 100644 --- a/src/pacman/package.c +++ b/src/pacman/package.c @@ -84,7 +84,7 @@ void dump_pkg_full(pmpkg_t *pkg, int level) } if(level>0) { - /* compute this here so we don't get a puase in the middle of output */ + /* compute this here so we don't get a pause in the middle of output */ requiredby = alpm_pkg_compute_requiredby(pkg); } diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 16990957..4c556a7d 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -437,7 +437,7 @@ static int parseargs(int argc, char *argv[]) config->flags |= PM_TRANS_FLAG_ALLDEPS; break; case 1009: - config->logfile = strdup(optarg); + config->logfile = strndup(optarg, PATH_MAX); break; case 1010: list = strsplit(optarg, ','); -- cgit v1.2.3-24-g4f1b