mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-04 08:35:07 -05:00
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>
This commit is contained in:
parent
8e3b39a9e0
commit
7eb2f0cd15
@ -70,12 +70,12 @@ int pacman_upgrade(alpm_list_t *targets)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
printf(_("loading packages...\n"));
|
||||||
/* add targets to the created transaction */
|
/* add targets to the created transaction */
|
||||||
for(i = targets; i; i = alpm_list_next(i)) {
|
for(i = targets; i; i = alpm_list_next(i)) {
|
||||||
char *targ = alpm_list_getdata(i);
|
char *targ = alpm_list_getdata(i);
|
||||||
alpm_pkg_t *pkg;
|
alpm_pkg_t *pkg;
|
||||||
|
|
||||||
printf(_("loading packages...\n"));
|
|
||||||
if(alpm_pkg_load(config->handle, targ, 1, level, &pkg) != 0) {
|
if(alpm_pkg_load(config->handle, targ, 1, level, &pkg) != 0) {
|
||||||
pm_fprintf(stderr, ALPM_LOG_ERROR, "'%s': %s\n",
|
pm_fprintf(stderr, ALPM_LOG_ERROR, "'%s': %s\n",
|
||||||
targ, alpm_strerror(alpm_errno(config->handle)));
|
targ, alpm_strerror(alpm_errno(config->handle)));
|
||||||
|
Loading…
Reference in New Issue
Block a user