From 1744fa886780be2061da364e6005c937d9a1117e Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 15 Mar 2007 22:11:10 +0000 Subject: (mirrors) don't report cryptic "undefined value as array" error message (#27429) --- rpmdrake.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.1