summaryrefslogtreecommitdiff
path: root/src/pacman
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-09-19 22:09:15 -0400
committerDan McGee <dan@archlinux.org>2011-09-20 10:23:11 -0500
commit7eb2f0cd151998d36746e2eb14cad2a3f8fb708b (patch)
tree838e1a77e6595de3000be0ffc1b1e603f240a030 /src/pacman
parent8e3b39a9e0c2fbc268919a57fb1e3cf7aa2aedf4 (diff)
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 <dreisner@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman')
-rw-r--r--src/pacman/upgrade.c2
1 files changed, 1 insertions, 1 deletions
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)));