diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2006-11-24 14:30:11 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2006-11-24 14:30:11 +0000 |
commit | 831e281b689c67f6dc822bd1e633484b8060ae63 (patch) | |
tree | e9884829949005e44aa6157c8f6198b530612084 | |
parent | 03e88f7af50028160bcac14fe742c6384877eed7 (diff) | |
download | urpmi-831e281b689c67f6dc822bd1e633484b8060ae63.tar urpmi-831e281b689c67f6dc822bd1e633484b8060ae63.tar.gz urpmi-831e281b689c67f6dc822bd1e633484b8060ae63.tar.bz2 urpmi-831e281b689c67f6dc822bd1e633484b8060ae63.tar.xz urpmi-831e281b689c67f6dc822bd1e633484b8060ae63.zip |
better var name ($medium is always used to hold a medium, not a number)
-rw-r--r-- | urpm/media.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/media.pm b/urpm/media.pm index 9d33a56a..de2155ab 100644 --- a/urpm/media.pm +++ b/urpm/media.pm @@ -694,7 +694,7 @@ sub add_distrib_media { my @newnames; #- at this point, we have found a media.cfg file, so parse it #- and create all necessary media according to it. - my $medium = $options{initial_number} || 1; + my $medium_index = $options{initial_number} || 1; foreach my $media ($distribconf->listmedia) { my $skip = 0; @@ -721,7 +721,7 @@ sub add_distrib_media { my $is_update_media = $distribconf->getvalue($media, 'updates_for'); push @newnames, add_medium($urpm, - $name ? "$media_name ($name$medium)" : $media_name, + $name ? "$media_name ($name$medium_index)" : $media_name, reduce_pathname($distribconf->getfullpath($media, 'path')), offset_pathname( $url, @@ -732,7 +732,7 @@ sub add_distrib_media { # the following override %options update => $is_update_media ? 1 : undef, ); - ++$medium; + ++$medium_index; } return @newnames; } |