diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-08 13:43:27 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-12-08 13:43:27 +0000 |
commit | 114b479ab0c12701a31607a27387526ec6b1b928 (patch) | |
tree | b75840b417bb5e8bebd6695e09c7796a42a5db27 | |
parent | 87acb578eb0c6098444ee0215254c59a92436c5b (diff) | |
download | urpmi-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-- | gurpmi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |