diff options
Diffstat (limited to 'urpm/mirrors.pm')
-rw-r--r-- | urpm/mirrors.pm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/urpm/mirrors.pm b/urpm/mirrors.pm index 17366b38..70fa5d13 100644 --- a/urpm/mirrors.pm +++ b/urpm/mirrors.pm @@ -111,8 +111,13 @@ sub _save_cache { sub _list { my ($urpm, $mirrorlist) = @_; - # expand the variable - $mirrorlist = _MIRRORLIST() if $mirrorlist eq '$MIRRORLIST'; + # expand the variables + if ($mirrorlist eq '$MIRRORLIST') { + $mirrorlist = _MIRRORLIST(); + } else { + require urpm::cfg; + $mirrorlist = urpm::cfg::expand_line($mirrorlist); + } my @mirrors = _mirrors_filtered($urpm, $mirrorlist); add_proximity_and_sort($urpm, \@mirrors); |