summaryrefslogtreecommitdiffstats
path: root/urpmi
diff options
context:
space:
mode:
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?");