diff options
author | Francois Pons <fpons@mandriva.com> | 2000-09-03 16:08:17 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2000-09-03 16:08:17 +0000 |
commit | 4bddb9a60cd5808c9f9650f7c9c0cadc68225a65 (patch) | |
tree | 81c9f390dccb21575c5ac354589dddaf6100b0ea /urpmi | |
parent | cfa7f2ba4ed0b05556d36e835637556aeedfc6b1 (diff) | |
download | urpmi-4bddb9a60cd5808c9f9650f7c9c0cadc68225a65.tar urpmi-4bddb9a60cd5808c9f9650f7c9c0cadc68225a65.tar.gz urpmi-4bddb9a60cd5808c9f9650f7c9c0cadc68225a65.tar.bz2 urpmi-4bddb9a60cd5808c9f9650f7c9c0cadc68225a65.tar.xz urpmi-4bddb9a60cd5808c9f9650f7c9c0cadc68225a65.zip |
*** empty log message ***
Diffstat (limited to 'urpmi')
-rwxr-xr-x | urpmi | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -330,17 +330,17 @@ foreach my $id (keys %packages_to_install) { #- package to install as a array of strings. my @to_install; +#- check if there is at least one package to install that +#- has not been given by the user. +my $ask_user; +my $sum = 0; +foreach (keys %packages_to_install) { + exists $packages{$_} or $ask_user = 1; + my $info = $params->{depslist}[$_]; + $sum += $info->{size}; + push @to_install, "$info->{name}-$info->{version}-$info->{release}"; +} if (!$auto) { - #- check if there is at least one package to install that - #- has not been given by the user. - my $ask_user; - my $sum = 0; - foreach (keys %packages_to_install) { - exists $packages{$_} or $ask_user = 1; - my $info = $params->{depslist}[$_]; - $sum += $info->{size}; - push @to_install, "$info->{name}-$info->{version}-$info->{release}"; - } if ($ask_user) { my $msg = _("To satisfy dependencies, the following packages are going to be installed (%d MB)", toMb($sum)); my $msg2 = _("Is it ok?"); |