diff options
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/cfg.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |