summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2000-09-03 16:08:17 +0000
committerFrancois Pons <fpons@mandriva.com>2000-09-03 16:08:17 +0000
commit4bddb9a60cd5808c9f9650f7c9c0cadc68225a65 (patch)
tree81c9f390dccb21575c5ac354589dddaf6100b0ea /urpmi
parentcfa7f2ba4ed0b05556d36e835637556aeedfc6b1 (diff)
downloadurpmi-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-xurpmi20
1 files changed, 10 insertions, 10 deletions
diff --git a/urpmi b/urpmi
index 393f5d78..fc053fbb 100755
--- a/urpmi
+++ b/urpmi
@@ -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?");