aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpmdrake.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/rpmdrake.pm b/rpmdrake.pm
index 958526ad..755e0aad 100644
--- a/rpmdrake.pm
+++ b/rpmdrake.pm
@@ -926,7 +926,9 @@ sub add_distrib_update_media {
add_medium_and_check(
$urpm,
{ nolock => 1, distrib => 1 },
- $medium_name, $mirror->{url}, probe_with => 'synthesis', initial_number => $initial_number, %options,
+ $medium_name,
+ ($mirror ? $mirror->{url} : (undef, mirrorlist => '$MIRRORLIST')),
+ probe_with => 'synthesis', initial_number => $initial_number, %options,
usedistrib => 1,
);
}