summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index d80d3c42f..73d0be5af 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -1021,10 +1021,10 @@ sub install($$$;$$) {
my @probs = $trans->run($packages, force => 1, nosize => 1, callback_open => sub {
my ($data, $type, $id) = @_;
my $pkg = defined $id && $data->{depslist}[$id];
+ my $medium = packageMedium($packages, $pkg);
my $f = $pkg && $pkg->filename;
print LOG "$f\n";
- #my $fd = install_any::getFile($f, $media->{$p->[$MEDIUM]}{descr});
- my $fd = install_any::getFile($f);
+ my $fd = install_any::getFile($f, $medium->{descr});
$fd ? fileno $fd : -1;
}, callback_close => sub {
my ($data, $type, $id) = @_;