diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-15 22:11:10 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-15 22:11:10 +0000 |
commit | 1744fa886780be2061da364e6005c937d9a1117e (patch) | |
tree | 11ce2e5bc748c162b2cef29b1cce6738dd8dbe21 | |
parent | f1e03d235d472b9f8312d97f922b40a55970bb2d (diff) | |
download | rpmdrake-1744fa886780be2061da364e6005c937d9a1117e.tar rpmdrake-1744fa886780be2061da364e6005c937d9a1117e.tar.gz rpmdrake-1744fa886780be2061da364e6005c937d9a1117e.tar.bz2 rpmdrake-1744fa886780be2061da364e6005c937d9a1117e.tar.xz rpmdrake-1744fa886780be2061da364e6005c937d9a1117e.zip |
(mirrors) don't report cryptic "undefined value as array" error message (#27429)
-rw-r--r-- | rpmdrake.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm index e0d0bd3f..ee56ead0 100644 --- a/rpmdrake.pm +++ b/rpmdrake.pm @@ -496,7 +496,7 @@ sub mirrors { $res and do { c::set_tagged_utf8($res); die $res }; return cat_($file); }); - my @mirrors = @{ mirror::list(common::parse_LDAP_namespace_structure(cat_('/etc/product.id')), $want_base_distro ? 'distrib' : 'updates') }; + my @mirrors = @{ mirror::list(common::parse_LDAP_namespace_structure(cat_('/etc/product.id')), $want_base_distro ? 'distrib' : 'updates') || [] }; require timezone; my $tz = ${timezone::read()}{timezone}; foreach my $mirror (@mirrors) { |