From 114b479ab0c12701a31607a27387526ec6b1b928 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Wed, 8 Dec 2004 13:43:27 +0000 Subject: Don't ask for confirmation when there is only one package to be installed. --- gurpmi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1