From 2d25701dfbd768bf37473c4289368badcaa93034 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Wed, 15 Apr 2009 14:29:38 +0000 Subject: do not crash when encountering bad signatures in automatic install --- perl-install/install/pkgs.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'perl-install/install/pkgs.pm') diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index 188e81f05..c933cfd56 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -763,7 +763,11 @@ sub _install_raw { $msg =~ s/:$/\n\n/m; # FIXME: to be fixed in urpmi after 2008.0 (sic!) log::l($msg); log::l($msg2); - $::o->ask_yesorno(N("Warning"), "$msg\n\n$msg2"); + if ($packages->{options}{auto}) { + 0; + } else { + $::o->ask_yesorno(N("Warning"), "$msg\n\n$msg2"); + } }, copy_removable => sub { my ($medium) = @_; -- cgit v1.2.1