From 7eb2f0cd151998d36746e2eb14cad2a3f8fb708b Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 19 Sep 2011 22:09:15 -0400 Subject: pacman/upgrade: print 'loading packages...' only once Do this outside the loop to prevent the message from being displayed (and pluralized!) for each individual package. Signed-off-by: Dave Reisner Signed-off-by: Dan McGee --- src/pacman/upgrade.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacman/upgrade.c b/src/pacman/upgrade.c index dcd0d664..565fb922 100644 --- a/src/pacman/upgrade.c +++ b/src/pacman/upgrade.c @@ -70,12 +70,12 @@ int pacman_upgrade(alpm_list_t *targets) return 1; } + printf(_("loading packages...\n")); /* add targets to the created transaction */ for(i = targets; i; i = alpm_list_next(i)) { char *targ = alpm_list_getdata(i); alpm_pkg_t *pkg; - printf(_("loading packages...\n")); if(alpm_pkg_load(config->handle, targ, 1, level, &pkg) != 0) { pm_fprintf(stderr, ALPM_LOG_ERROR, "'%s': %s\n", targ, alpm_strerror(alpm_errno(config->handle))); -- cgit v1.2.3-24-g4f1b