From 053d9498ae9612c11ac789aa084774bc37225da5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 8 Jul 2008 19:57:50 +0000 Subject: rename var --- urpm/cdrom.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/urpm/cdrom.pm b/urpm/cdrom.pm index 1ae8cceb..625200f7 100644 --- a/urpm/cdrom.pm +++ b/urpm/cdrom.pm @@ -197,11 +197,11 @@ sub _do_the_copy { sub _copy_from_cdrom__if_needed { my ($urpm, $blist, $sources, $want_copy) = @_; - while (my ($i, $pkg) = each %{$blist->{pkgs}}) { + while (my ($id, $pkg) = each %{$blist->{pkgs}}) { my $filepath = _filepath($blist, $pkg) or next; if (-r $filepath) { - $sources->{$i} = $want_copy ? _do_the_copy($urpm, $filepath) : $filepath; + $sources->{$id} = $want_copy ? _do_the_copy($urpm, $filepath) : $filepath; } else { #- fallback to use other method for retrieving the file later. $urpm->{error}(N("unable to read rpm file [%s] from medium \"%s\"", $filepath, $blist->{medium}{name})); -- cgit v1.2.1