summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-08 13:43:27 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-12-08 13:43:27 +0000
commit114b479ab0c12701a31607a27387526ec6b1b928 (patch)
treeb75840b417bb5e8bebd6695e09c7796a42a5db27
parent87acb578eb0c6098444ee0215254c59a92436c5b (diff)
downloadurpmi-114b479ab0c12701a31607a27387526ec6b1b928.tar
urpmi-114b479ab0c12701a31607a27387526ec6b1b928.tar.gz
urpmi-114b479ab0c12701a31607a27387526ec6b1b928.tar.bz2
urpmi-114b479ab0c12701a31607a27387526ec6b1b928.tar.xz
urpmi-114b479ab0c12701a31607a27387526ec6b1b928.zip
Don't ask for confirmation when there is only one package to be installed.
-rw-r--r--gurpmi2
1 files changed, 1 insertions, 1 deletions
diff --git a/gurpmi b/gurpmi
index 61093a25..5b9081e2 100644
--- a/gurpmi
+++ b/gurpmi
@@ -285,7 +285,7 @@ sub do_install_3 {
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;
}
- @to_install
+ @to_install > 1
? ask_continue(N(
"To satisfy dependencies, the following %d packages are going to be installed:\n%s\n\nIs this OK?",
scalar(@to_install), join "\n", @to_install