From 3c8f10922eede4aab447c995fa8ac9f55c5d4945 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Mon, 19 Sep 2011 18:20:50 +0000 Subject: (bad_signature) simplify --- perl-install/install/pkgs.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'perl-install/install') diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index bfb039690..5be19d91f 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -798,11 +798,8 @@ sub _install_raw { $msg =~ s/:$/\n\n/m; # FIXME: to be fixed in urpmi after 2008.0 (sic!) log::l($msg); log::l($msg2); - if ($packages->{options}{auto}) { - 0; - } else { - $::o->ask_yesorno(N("Warning"), "$msg\n\n$msg2"); - } + return 0 if $packages->{options}{auto}; + $::o->ask_yesorno(N("Warning"), "$msg\n\n$msg2"); }, copy_removable => sub { my ($medium) = @_; -- cgit v1.2.1