From 52e2b07d89c7439ca097d5072e95e28fa14819c4 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 18 Jan 2007 14:43:57 +0000 Subject: (do_install_2) display the same info as the text version (number and size of packages) --- gurpmi2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/gurpmi2 b/gurpmi2 index 2ba2bab7..4bb0d4da 100755 --- a/gurpmi2 +++ b/gurpmi2 @@ -202,15 +202,20 @@ sub do_install { sub do_install_2 () { my @to_install; + my $sum; foreach my $pkg (sort { $a->name cmp $b->name } @{$urpm->{depslist}}[keys %{$state->{selected}}]) { - $pkg->arch ne 'src' and push @to_install, scalar $pkg->fullname; + if ($pkg->arch ne 'src') { + push @to_install, scalar $pkg->fullname; + $sum += $pkg->size; + } } $urpm->{nb_install} = @to_install; @to_install > 1 && !$gurpmi::options{auto} ? ask_continue(P("To satisfy dependencies, the following package is going to be installed:", "To satisfy dependencies, the following packages are going to be installed:", scalar(@to_install), - ) . join("\n", '', @to_install, ''), \&do_install_3) + ) . join("\n", '', @to_install, '') . N("(%d packages, %d MB)", scalar(@to_install), toMb($sum)), + , \&do_install_3) : goto \&do_install_3; } -- cgit v1.2.1