summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-02-25 20:06:17 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-02-25 20:06:17 +0000
commit10e1f8ca3374fdbfc089b107bedf72b7bdb14d19 (patch)
tree52f6a1ece64503f436209f5e05c2cb04078b85b9 /urpm
parenta2ffd34e9abce60b4e3750399801fe88f5c6cfe9 (diff)
downloadurpmi-10e1f8ca3374fdbfc089b107bedf72b7bdb14d19.tar
urpmi-10e1f8ca3374fdbfc089b107bedf72b7bdb14d19.tar.gz
urpmi-10e1f8ca3374fdbfc089b107bedf72b7bdb14d19.tar.bz2
urpmi-10e1f8ca3374fdbfc089b107bedf72b7bdb14d19.tar.xz
urpmi-10e1f8ca3374fdbfc089b107bedf72b7bdb14d19.zip
do not die on bad ini file
Diffstat (limited to 'urpm')
-rw-r--r--urpm/cfg.pm3
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 {