summaryrefslogtreecommitdiffstats
path: root/urpm/cdrom.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-08 19:57:50 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-08 19:57:50 +0000
commit053d9498ae9612c11ac789aa084774bc37225da5 (patch)
treeb80519bda40182198eaec2bb80b395aebb2b5f46 /urpm/cdrom.pm
parent5eb733f5c2ce1aedce36cd039c65e9fb5fabb32e (diff)
downloadurpmi-053d9498ae9612c11ac789aa084774bc37225da5.tar
urpmi-053d9498ae9612c11ac789aa084774bc37225da5.tar.gz
urpmi-053d9498ae9612c11ac789aa084774bc37225da5.tar.bz2
urpmi-053d9498ae9612c11ac789aa084774bc37225da5.tar.xz
urpmi-053d9498ae9612c11ac789aa084774bc37225da5.zip
rename var
Diffstat (limited to 'urpm/cdrom.pm')
-rw-r--r--urpm/cdrom.pm4
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}));