From 10e1f8ca3374fdbfc089b107bedf72b7bdb14d19 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 25 Feb 2008 20:06:17 +0000 Subject: do not die on bad ini file --- urpm/cfg.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'urpm/cfg.pm') diff --git a/urpm/cfg.pm b/urpm/cfg.pm index 3283c6e7..53f610ee 100644 --- a/urpm/cfg.pm +++ b/urpm/cfg.pm @@ -258,7 +258,8 @@ sub load_ini_config_file_raw { my ($file, $b_norewrite) = @_; require Config::IniFiles; - my $cfg = Config::IniFiles->new('-file' => $file); + my $cfg = Config::IniFiles->new('-file' => $file) or return []; + [ map { my $section = $_; my %h = map { -- cgit v1.2.1