diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2010-01-12 14:09:09 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2010-01-12 14:09:09 +0000 |
commit | ab9e35b10cb34ca36314c5658f4a71f11642fb47 (patch) | |
tree | 518f2ccd29454c4e7ff741699e6f0c60f578b455 /urpm | |
parent | 2a5c02d5839531351773d6854b955af665c283ab (diff) | |
download | urpmi-ab9e35b10cb34ca36314c5658f4a71f11642fb47.tar urpmi-ab9e35b10cb34ca36314c5658f4a71f11642fb47.tar.gz urpmi-ab9e35b10cb34ca36314c5658f4a71f11642fb47.tar.bz2 urpmi-ab9e35b10cb34ca36314c5658f4a71f11642fb47.tar.xz urpmi-ab9e35b10cb34ca36314c5658f4a71f11642fb47.zip |
fix handling of media with redirections
This was broken when trying to handle $RELEASE/$ARCH in urpmi.addmedia
Diffstat (limited to 'urpm')
-rw-r--r-- | urpm/media.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index 84803648..19c10d89 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -1819,7 +1819,7 @@ sub update_those_media { my $unsubstituted_url = $medium->{url}; $medium->{url} = urpm::cfg::expand_line($medium->{url}) if $medium->{url}; my $rc = _update_medium($urpm, $medium, %options); - $medium->{url} = $unsubstituted_url; + $medium->{url} = urpm::cfg::substitute_back ($medium->{url}, $unsubstituted_url); $rc or return if !$options{allow_failures}; $updates_result{$rc || 'error'}++; } |