From 4db08b3d13a35be4d7627c1160c47381202ff551 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Mon, 6 Mar 2006 11:18:42 +0000 Subject: Patch by Titi for gurpmi, to avoid asking confirmation when the new option --auto is given --- gurpmi2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gurpmi2') diff --git a/gurpmi2 b/gurpmi2 index dd37ca27..325de304 100755 --- a/gurpmi2 +++ b/gurpmi2 @@ -180,7 +180,7 @@ sub do_install_2 () { $pkg->arch ne 'src' and push @to_install, scalar $pkg->fullname; } $urpm->{nb_install} = @to_install; - @to_install > 1 + (@to_install > 1 && !$gurpmi::options{auto}) ? ask_continue(N( "To satisfy dependencies, the following %d packages are going to be installed:\n%s\n", scalar(@to_install), join "\n", @to_install -- cgit v1.2.1