aboutsummaryrefslogtreecommitdiffstats
path: root/rpmdrake.pm
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-15 22:10:43 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-15 22:10:43 +0000
commit63348ce64c263b3763d71974dcb8bff5bd2cde57 (patch)
tree5e669fc3ab42b52878a214bc82fbedc2fd91e41a /rpmdrake.pm
parentf49755cc9c924e0862be35a5f4ede8d9ba07b015 (diff)
downloadrpmdrake-63348ce64c263b3763d71974dcb8bff5bd2cde57.tar
rpmdrake-63348ce64c263b3763d71974dcb8bff5bd2cde57.tar.gz
rpmdrake-63348ce64c263b3763d71974dcb8bff5bd2cde57.tar.bz2
rpmdrake-63348ce64c263b3763d71974dcb8bff5bd2cde57.tar.xz
rpmdrake-63348ce64c263b3763d71974dcb8bff5bd2cde57.zip
(mirrors) don't report cryptic "undefined value as array" error message (#27429)
Diffstat (limited to 'rpmdrake.pm')
-rw-r--r--rpmdrake.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index a1ecda76..ff87db3a 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -514,7 +514,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) {