diff options
-rw-r--r-- | urpm/cdrom.pm | 4 |
1 files 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})); |