mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-12 04:15:06 -05:00
Fix missing [removal] output
Currently, a transaction is considered to be purely package removal until the first package install is found. This resulted in the removed packages at the start of a combined upgrade/removal transaction not getting the "[removal]" output. Fixes FS#27981. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
c231c9af97
commit
c77cec2ffc
@ -835,8 +835,12 @@ static void _display_targets(alpm_list_t *targets, int verbose)
|
|||||||
/* add up size of all removed packages */
|
/* add up size of all removed packages */
|
||||||
rsize += alpm_pkg_get_isize(target->remove);
|
rsize += alpm_pkg_get_isize(target->remove);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* form data for both verbose and non-verbose display */
|
/* form data for both verbose and non-verbose display */
|
||||||
|
for(i = targets; i; i = alpm_list_next(i)) {
|
||||||
|
pm_target_t *target = i->data;
|
||||||
|
|
||||||
rows = alpm_list_add(rows, create_verbose_row(target, show_dl_size));
|
rows = alpm_list_add(rows, create_verbose_row(target, show_dl_size));
|
||||||
if(target->install) {
|
if(target->install) {
|
||||||
pm_asprintf(&str, "%s-%s", alpm_pkg_get_name(target->install),
|
pm_asprintf(&str, "%s-%s", alpm_pkg_get_name(target->install),
|
||||||
|
Loading…
Reference in New Issue
Block a user